aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_threading.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_threading.py')
-rw-r--r--Lib/test/test_threading.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_threading.py b/Lib/test/test_threading.py
index b666533466e..fe225558fc4 100644
--- a/Lib/test/test_threading.py
+++ b/Lib/test/test_threading.py
@@ -1192,11 +1192,12 @@ class ThreadTests(BaseTestCase):
resource.setrlimit(resource.RLIMIT_NPROC, (0, hard))
try:
- _thread.start_new_thread(f, ())
+ handle = _thread.start_joinable_thread(f)
except RuntimeError:
print('ok')
else:
print('!skip!')
+ handle.join()
"""
_, out, err = assert_python_ok("-u", "-c", code)
out = out.strip()