Skip to content

Commit 3ae3c48

Browse files
committed
review comments
1 parent 71fed22 commit 3ae3c48

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Lib/test/test_free_threading/test_itertools_batched.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@
55
from test.support import threading_helper
66

77

8+
threading_helper.requires_working_threading(module=True)
9+
810
class EnumerateThreading(unittest.TestCase):
911

1012
@threading_helper.reap_threads
11-
@threading_helper.requires_working_threading()
1213
def test_threading(self):
1314
number_of_threads = 10
1415
number_of_iterations = 20
@@ -28,10 +29,8 @@ def work(it):
2829
for ii in range(number_of_threads):
2930
worker_threads.append(
3031
Thread(target=work, args=[batch_iterator]))
31-
for t in worker_threads:
32-
t.start()
33-
for t in worker_threads:
34-
t.join()
32+
33+
threading_helper.start_threads(worker_threads)
3534

3635
barrier.reset()
3736

0 commit comments

Comments
 (0)