Skip to content

Commit b90161f

Browse files
committed
Merge branch '3.13' of https://github.com/python/cpython into 3.13
2 parents fd81351 + 0b266aa commit b90161f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/test/test_threading.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1192,11 +1192,12 @@ def f():
11921192
resource.setrlimit(resource.RLIMIT_NPROC, (0, hard))
11931193
11941194
try:
1195-
_thread.start_new_thread(f, ())
1195+
handle = _thread.start_joinable_thread(f)
11961196
except RuntimeError:
11971197
print('ok')
11981198
else:
11991199
print('!skip!')
1200+
handle.join()
12001201
"""
12011202
_, out, err = assert_python_ok("-u", "-c", code)
12021203
out = out.strip()

0 commit comments

Comments
 (0)