mirror of
https://github.com/python/cpython.git
synced 2026-01-06 07:22:09 +00:00
gh-132542: Only run test_native_id_after_fork if native_id is supported (GH-134408)
This commit is contained in:
parent
c740fe3bd0
commit
e6dde10a69
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue