Skip to content

Commit 97ed216

Browse files
[3.12] gh-109746: Fix race condition in test_start_new_thread_failed (GH-127299) (GH-127324)
(cherry picked from commit 83926d3) Co-authored-by: Serhiy Storchaka <[email protected]>
1 parent 16e899d commit 97ed216

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/test_threading.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1175,11 +1175,11 @@ def f():
11751175
except RuntimeError:
11761176
print('ok')
11771177
else:
1178-
print('skip')
1178+
print('!skip!')
11791179
"""
11801180
_, out, err = assert_python_ok("-u", "-c", code)
11811181
out = out.strip()
1182-
if out == b'skip':
1182+
if b'!skip!' in out:
11831183
self.skipTest('RLIMIT_NPROC had no effect; probably superuser')
11841184
self.assertEqual(out, b'ok')
11851185
self.assertEqual(err, b'')

0 commit comments

Comments
 (0)