We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71fed22 commit 3ae3c48Copy full SHA for 3ae3c48
Lib/test/test_free_threading/test_itertools_batched.py
@@ -5,10 +5,11 @@
5
from test.support import threading_helper
6
7
8
+threading_helper.requires_working_threading(module=True)
9
+
10
class EnumerateThreading(unittest.TestCase):
11
12
@threading_helper.reap_threads
- @threading_helper.requires_working_threading()
13
def test_threading(self):
14
number_of_threads = 10
15
number_of_iterations = 20
@@ -28,10 +29,8 @@ def work(it):
28
29
for ii in range(number_of_threads):
30
worker_threads.append(
31
Thread(target=work, args=[batch_iterator]))
- for t in worker_threads:
32
- t.start()
33
34
- t.join()
+ threading_helper.start_threads(worker_threads)
35
36
barrier.reset()
37
0 commit comments