8000 [3.13] gh-109746: Fix race condition in test_start_new_thread_failed … · python/cpython@82d199d · GitHub
[go: up one dir, main page]

Skip to content

Commit 82d199d

Browse files
[3.13] gh-109746: Fix race condition in test_start_new_thread_failed (GH-127299) (GH-127323)
(cherry picked from commit 83926d3) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
1 parent d2d1055 commit 82d199d

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)
0