Skip to content

Commit 6856752

Browse files
committed
gh-116738: Convert generator to list comprehension
1 parent 79028c8 commit 6856752

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/support/threading_helper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,10 +262,10 @@ def wrapper_func(*args, **kwargs):
262262
worker_func(*args, **kwargs)
263263

264264
with catch_threading_exception() as cm:
265-
workers = (
265+
workers = [
266266
threading.Thread(target=wrapper_func, args=args, kwargs=kwargs)
267267
for _ in range(nthreads)
268-
)
268+
]
269269
with start_threads(workers):
270270
pass
271271

0 commit comments

Comments
 (0)