gh-132542: Only run test_native_id_after_fork if native_id is supported (GH-134408)

This commit is contained in:
Noam Cohen 2025-05-21 14:10:57 +03:00 committed by GitHub
parent c740fe3bd0
commit e6dde10a69
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