diff options
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/libregrtest/utils.py | 2 | ||||
-rw-r--r-- | Lib/test/pythoninfo.py | 2 | ||||
-rw-r--r-- | Lib/test/support/__init__.py | 2 | ||||
-rw-r--r-- | Lib/test/test_cppext/__init__.py | 2 | ||||
-rw-r--r-- | Lib/test/test_importlib/test_windows.py | 2 | ||||
-rw-r--r-- | Lib/test/test_sys.py | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/Lib/test/libregrtest/utils.py b/Lib/test/libregrtest/utils.py index bd4dce3..e4a28af 100644 --- a/Lib/test/libregrtest/utils.py +++ b/Lib/test/libregrtest/utils.py @@ -290,7 +290,7 @@ def get_build_info(): build = [] # --disable-gil - if sysconfig.get_config_var('Py_NOGIL'): + if sysconfig.get_config_var('Py_GIL_DISABLED'): build.append("nogil") if hasattr(sys, 'gettotalrefcount'): diff --git a/Lib/test/pythoninfo.py b/Lib/test/pythoninfo.py index 3a91a7d..49e41ca 100644 --- a/Lib/test/pythoninfo.py +++ b/Lib/test/pythoninfo.py @@ -517,7 +517,7 @@ def collect_sysconfig(info_add): 'PY_STDMODULE_CFLAGS', 'Py_DEBUG', 'Py_ENABLE_SHARED', - 'Py_NOGIL', + 'Py_GIL_DISABLED', 'SHELL', 'SOABI', 'abs_builddir', diff --git a/Lib/test/support/__init__.py b/Lib/test/support/__init__.py index bb9f998..eec5498 100644 --- a/Lib/test/support/__init__.py +++ b/Lib/test/support/__init__.py @@ -796,7 +796,7 @@ def check_cflags_pgo(): return any(option in cflags_nodist for option in pgo_options) -if sysconfig.get_config_var('Py_NOGIL'): +if sysconfig.get_config_var('Py_GIL_DISABLED'): _header = 'PHBBInP' else: _header = 'nP' diff --git a/Lib/test/test_cppext/__init__.py b/Lib/test/test_cppext/__init__.py index 4d9ee3c..299a16a 100644 --- a/Lib/test/test_cppext/__init__.py +++ b/Lib/test/test_cppext/__init__.py @@ -15,7 +15,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_NOGIL') == 1, +@unittest.skipIf(sysconfig.get_config_var('Py_GIL_DISABLED') == 1, 'test does not work with --disable-gil') @support.requires_subprocess() class TestCPPExt(unittest.TestCase): diff --git a/Lib/test/test_importlib/test_windows.py b/Lib/test/test_importlib/test_windows.py index a60a4c4..d251332 100644 --- a/Lib/test/test_importlib/test_windows.py +++ b/Lib/test/test_importlib/test_windows.py @@ -112,7 +112,7 @@ class WindowsRegistryFinderTests: class WindowsExtensionSuffixTests: def test_tagged_suffix(self): suffixes = self.machinery.EXTENSION_SUFFIXES - abi_flags = "t" if sysconfig.get_config_var("Py_NOGIL") else "" + abi_flags = "t" if sysconfig.get_config_var("Py_GIL_DISABLED") else "" ver = sys.version_info platform = re.sub('[^a-zA-Z0-9]', '_', get_platform()) expected_tag = f".cp{ver.major}{ver.minor}{abi_flags}-{platform}.pyd" diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py index b111962..ae73f5a 100644 --- a/Lib/test/test_sys.py +++ b/Lib/test/test_sys.py @@ -1209,7 +1209,7 @@ class SysModuleTest(unittest.TestCase): @unittest.skipUnless(hasattr(sys, 'abiflags'), 'need sys.abiflags') def test_disable_gil_abi(self): abi_threaded = 't' in sys.abiflags - py_nogil = (sysconfig.get_config_var('Py_NOGIL') == 1) + py_nogil = (sysconfig.get_config_var('Py_GIL_DISABLED') == 1) self.assertEqual(py_nogil, abi_threaded) |