From: Noam Cohen Date: Wed, 21 May 2025 11:10:57 +0000 (+0300) Subject: gh-132542: Only run test_native_id_after_fork if native_id is supported (GH-134408) X-Git-Tag: v3.15.0a1~1608 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e6dde10a69ce62c3b02b3b4e07559d06a9451fc2;p=thirdparty%2FPython%2Fcpython.git gh-132542: Only run test_native_id_after_fork if native_id is supported (GH-134408) --- diff --git a/Lib/test/test_threading.py b/Lib/test/test_threading.py index a9eec139bec8..0e51e7fc8c5a 100644 --- a/Lib/test/test_threading.py +++ b/Lib/test/test_threading.py @@ -1353,6 +1353,7 @@ class ThreadTests(BaseTestCase): 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