Skip to content

Commit 9598ac0

Browse files
serhiy-storchakaebonnal
authored andcommitted
pythongh-109746: Fix race condition in test_start_new_thread_failed (pythonGH-127299)
1 parent 1eadc0a commit 9598ac0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/test_threading.py

+2-2
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)