@@ -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
108104def 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
190184def 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 '
0 commit comments