From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Wed, 21 May 2025 11:34:49 +0000 (+0200) Subject: [3.13] gh-132542: Only run test_native_id_after_fork if native_id is supported (GH... X-Git-Tag: v3.13.4~71 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f5de0632d03b02719ebdcb47540b9dd257571407;p=thirdparty%2FPython%2Fcpython.git [3.13] gh-132542: Only run test_native_id_after_fork if native_id is supported (GH-134408) (GH-134414) (cherry picked from commit e6dde10a69ce62c3b02b3b4e07559d06a9451fc2) Co-authored-by: Noam Cohen --- diff --git a/Lib/test/test_threading.py b/Lib/test/test_threading.py index 31b52e14e506..9ba5f68fd4a5 100644 --- a/Lib/test/test_threading.py +++ b/Lib/test/test_threading.py @@ -1209,6 +1209,7 @@ class ThreadTests(BaseTestCase): @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