[3.14] gh-132542: Only run test_native_id_after_fork if native_id is supported (GH-134408) (GH-134413)

(cherry picked from commit e6dde10a69)

Co-authored-by: Noam Cohen <noam@noam.me>
This commit is contained in:
Miss Islington (bot) 2025-05-21 13:38:37 +02:00 committed by GitHub
parent 87d7a19ef0
commit 7c3e21540b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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