https://github.com/python/cpython/commit/97ed21636cd204df4295cbc4f9c27053b6fd8a45 commit: 97ed21636cd204df4295cbc4f9c27053b6fd8a45 branch: 3.12 author: Miss Islington (bot) <[email protected]> committer: serhiy-storchaka <[email protected]> date: 2024-11-27T12:22:32Z summary:
[3.12] gh-109746: Fix race condition in test_start_new_thread_failed (GH-127299) (GH-127324) (cherry picked from commit 83926d3b4c7847394b5e2531e9566d7fc9fbea0f) Co-authored-by: Serhiy Storchaka <[email protected]> files: M Lib/test/test_threading.py diff --git a/Lib/test/test_threading.py b/Lib/test/test_threading.py index 183af7c1f0836f..75a56f7830bead 100644 --- a/Lib/test/test_threading.py +++ b/Lib/test/test_threading.py @@ -1175,11 +1175,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'') _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-checkins.python.org/ Member address: [email protected]
