Skip to content

Commit 6276525

Browse files
change test to use threading_helper.start_threads
1 parent 3e57547 commit 6276525

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

Lib/test/test_free_threading/test_pickle.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,8 @@ def mutator():
3737
threads.append(threading.Thread(target=dumper))
3838
threads.append(threading.Thread(target=mutator))
3939

40-
for t in threads:
41-
t.start()
42-
for t in threads:
43-
t.join()
44-
45-
# If we get here without a segfault, the test passed.
46-
40+
with threading_helper.start_threads(threads):
41+
pass
4742

4843
if __name__ == "__main__":
4944
unittest.main()

0 commit comments

Comments
 (0)