From 5ac7ca42f145a5a2b2214fa44814cc4fe518fb06 Mon Sep 17 00:00:00 2001 From: Noam Cohen Date: Wed, 21 May 2025 14:10:57 +0300 Subject: [PATCH] gh-132542: Only run test_native_id_after_fork if native_id is supported (GH-134408) (cherry picked from commit e6dde10a69ce62c3b02b3b4e07559d06a9451fc2) Co-authored-by: Noam Cohen --- Lib/test/test_threading.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/test/test_threading.py b/Lib/test/test_threading.py index dc7172db04c5b7..a9a354647f56ca 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