mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
gh-109746: Fix race condition in test_start_new_thread_failed (GH-127299)
This commit is contained in:
parent
6d3b5206cf
commit
83926d3b4c
1 changed files with 2 additions and 2 deletions
|
@ -1196,11 +1196,11 @@ class ThreadTests(BaseTestCase):
|
|||
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'')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue