mirror of
https://github.com/python/cpython.git
synced 2025-10-17 20:28:43 +00:00
gh-111863: Rename Py_NOGIL
to Py_GIL_DISABLED
(#111864)
Rename Py_NOGIL to Py_GIL_DISABLED
This commit is contained in:
parent
1c8f912ebd
commit
3b3ec0d77f
39 changed files with 82 additions and 81 deletions
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue