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 d4e5779 commit 2af6ce9Copy full SHA for 2af6ce9
Lib/test/test_free_threading/test_enumerate.py
@@ -4,11 +4,11 @@
4
5
from test.support import threading_helper
6
7
+threading_helper.requires_working_threading(module=True)
8
9
class EnumerateThreading(unittest.TestCase):
10
11
@threading_helper.reap_threads
- @threading_helper.requires_working_threading()
12
def test_threading(self):
13
number_of_threads = 10
14
number_of_iterations = 8
@@ -29,10 +29,8 @@ def work(enum):
29
for ii in range(number_of_threads):
30
worker_threads.append(
31
Thread(target=work, args=[enum]))
32
- for t in worker_threads:
33
- t.start()
34
35
- t.join()
+ with threading_helper.start_threads(worker_threads):
+ pass
36
37
barrier.reset()
38
0 commit comments