Skip to content

Commit

Permalink
pythongh-109746: Fix race condition in test_start_new_thread_failed (p…
Browse files Browse the repository at this point in the history
…ythonGH-127299)

(cherry picked from commit 83926d3)

Co-authored-by: Serhiy Storchaka <[email protected]>
  • Loading branch information
serhiy-storchaka authored and miss-islington committed Nov 27, 2024
1 parent a5741d6 commit b61418a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Lib/test/test_threading.py
Original file line number Diff line number Diff line change
Expand Up @@ -1196,11 +1196,11 @@ def f():
except RuntimeError:
print('ok')
else:
print('skip')
print('!skip!')
"""
_, out, err = assert_python_ok("-u", "-c", code)
out = out.strip()
if out == b'skip':
if b'!skip!' in out:
self.skipTest('RLIMIT_NPROC had no effect; probably superuser')
self.assertEqual(out, b'ok')
self.assertEqual(err, b'')
Expand Down

0 comments on commit b61418a

Please sign in to comment.