Skip to content

Commit b61418a

Browse files
serhiy-storchakamiss-islington
authored andcommitted
pythongh-109746: Fix race condition in test_start_new_thread_failed (pythonGH-127299)
(cherry picked from commit 83926d3) Co-authored-by: Serhiy Storchaka <[email protected]>
1 parent a5741d6 commit b61418a

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
@@ -1196,11 +1196,11 @@ def f():
11961196
except RuntimeError:
11971197
print('ok')
11981198
else:
1199-
print('skip')
1199+
print('!skip!')
12001200
"""
12011201
_, out, err = assert_python_ok("-u", "-c", code)
12021202
out = out.strip()
1203-
if out == b'skip':
1203+
if b'!skip!' in out:
12041204
self.skipTest('RLIMIT_NPROC had no effect; probably superuser')
12051205
self.assertEqual(out, b'ok')
12061206
self.assertEqual(err, b'')

0 commit comments

Comments
 (0)