From 4174b2ff396d188608aa8487d15895d5602cc73f Mon Sep 17 00:00:00 2001 From: Noam Cohen Date: Wed, 21 May 2025 11:59:02 +0300 Subject: [PATCH] only run `native_id` tests if it's supported --- 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 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