aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test
diff options
context:
space:
mode:
authorNoam Cohen <noam@noam.me>2025-05-21 14:10:57 +0300
committerGitHub <noreply@github.com>2025-05-21 14:10:57 +0300
commite6dde10a69ce62c3b02b3b4e07559d06a9451fc2 (patch)
tree151997f7d6dce09dc7ea09c64f546536435d07bc /Lib/test
parentc740fe3bd092911d9e474bcc0eed2a009482be9f (diff)
downloadcpython-e6dde10a69ce62c3b02b3b4e07559d06a9451fc2.tar.gz
cpython-e6dde10a69ce62c3b02b3b4e07559d06a9451fc2.zip
gh-132542: Only run test_native_id_after_fork if native_id is supported (GH-134408)
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_threading.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_threading.py b/Lib/test/test_threading.py
index a9eec139bec..0e51e7fc8c5 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