mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
gh-112535: Add test on _Py_ThreadId() (#112709)
Add also test.support.Py_GIL_DISABLED constant.
This commit is contained in:
parent
a8ce149628
commit
c5fa8a54db
6 changed files with 75 additions and 8 deletions
|
|
@ -2,7 +2,6 @@
|
|||
# compatible with C++ and does not emit C++ compiler warnings.
|
||||
import os.path
|
||||
import shutil
|
||||
import sys
|
||||
import unittest
|
||||
import subprocess
|
||||
import sysconfig
|
||||
|
|
@ -15,7 +14,7 @@ SETUP = os.path.join(os.path.dirname(__file__), 'setup.py')
|
|||
|
||||
# gh-110119: pip does not currently support 't' in the ABI flag use by
|
||||
# --disable-gil builds. Once it does, we can remove this skip.
|
||||
@unittest.skipIf(sysconfig.get_config_var('Py_GIL_DISABLED') == 1,
|
||||
@unittest.skipIf(support.Py_GIL_DISABLED,
|
||||
'test does not work with --disable-gil')
|
||||
@support.requires_subprocess()
|
||||
class TestCPPExt(unittest.TestCase):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue