https://github.com/python/cpython/commit/e6dde10a69ce62c3b02b3b4e07559d06a9451fc2 commit: e6dde10a69ce62c3b02b3b4e07559d06a9451fc2 branch: main author: Noam Cohen <n...@noam.me> committer: serhiy-storchaka <storch...@gmail.com> date: 2025-05-21T14:10:57+03:00 summary:
gh-132542: Only run test_native_id_after_fork if native_id is supported (GH-134408) files: M Lib/test/test_threading.py diff --git a/Lib/test/test_threading.py b/Lib/test/test_threading.py index a9eec139bec8bf..0e51e7fc8c5a76 100644 --- a/Lib/test/test_threading.py +++ b/Lib/test/test_threading.py @@ -1353,6 +1353,7 @@ def do_flush(*args, **kwargs): assert_python_ok("-c", script) @skip_unless_reliable_fork + @unittest.skipUnless(hasattr(threading, 'get_native_id'), "test needs threading.get_native_id()") def test_native_id_after_fork(self): script = """if True: import threading _______________________________________________ Python-checkins mailing list -- python-checkins@python.org To unsubscribe send an email to python-checkins-le...@python.org https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: arch...@mail-archive.com