Skip to content

Commit 2eca2ea

Browse files
committed
Address linter regressions from flake8 7.2
1 parent f52f1b4 commit 2eca2ea

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

test/test_executor_parallel.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ def __init__(self):
2828
task_context=None)
2929

3030
async def __call__(self, *args, **kwargs):
31-
global ran_jobs
3231
ran_jobs.append(self.identifier)
3332

3433

@@ -62,7 +61,6 @@ def __init__(self):
6261
task_context=None)
6362

6463
async def __call__(self, *args, **kwargs):
65-
global ran_jobs
6664
try:
6765
await asyncio.sleep(0.05)
6866
except asyncio.CancelledError:
@@ -89,7 +87,6 @@ def __init__(self):
8987
task_context=None)
9088

9189
async def __call__(self, *args, **kwargs):
92-
global ran_jobs
9390
ran_jobs.append(self.identifier)
9491

9592

@@ -101,12 +98,10 @@ def __init__(self):
10198
task_context=None)
10299

103100
async def __call__(self, *args, **kwargs):
104-
global ran_jobs
105101
ran_jobs.append(self.identifier)
106102

107103

108104
def test_parallel():
109-
global ran_jobs
110105
extension = ParallelExecutorExtension()
111106

112107
args = SimpleNamespace(parallel_workers=2)
@@ -175,7 +170,6 @@ def __init__(self):
175170
task_context=None)
176171

177172
async def __call__(self, *args, **kwargs):
178-
global ran_jobs
179173
await asyncio.sleep(3)
180174
ran_jobs.append(self.identifier)
181175

@@ -188,8 +182,6 @@ def restore_sigint_handler():
188182

189183

190184
def test_parallel_keyboard_interrupt(restore_sigint_handler):
191-
global ran_jobs
192-
193185
if sys.platform == 'win32':
194186
pytest.skip(
195187
'Skipping keyboard interrupt test since the signal will cause '

test/test_spell_check.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
@pytest.fixture(scope='module')
1212
def known_words():
13-
global spell_check_words_path
1413
return spell_check_words_path.read_text().splitlines()
1514

1615

0 commit comments

Comments
 (0)