mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
[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:
parent
87d7a19ef0
commit
7c3e21540b
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