diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py index ae73f5a7de7..7f49fb00427 100644 --- a/Lib/test/test_sys.py +++ b/Lib/test/test_sys.py @@ -1209,8 +1209,8 @@ 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_GIL_DISABLED') == 1) - self.assertEqual(py_nogil, abi_threaded) + py_gil_disabled = (sysconfig.get_config_var('Py_GIL_DISABLED') == 1) + self.assertEqual(py_gil_disabled, abi_threaded) @test.support.cpython_only diff --git a/Modules/_sysconfig.c b/Modules/_sysconfig.c index 2918913c18e..c76b9e6b3eb 100644 --- a/Modules/_sysconfig.c +++ b/Modules/_sysconfig.c @@ -58,11 +58,11 @@ _sysconfig_config_vars_impl(PyObject *module) #endif #ifdef Py_GIL_DISABLED - PyObject *py_nogil = _PyLong_GetOne(); + PyObject *py_gil_disabled = _PyLong_GetOne(); #else - PyObject *py_nogil = _PyLong_GetZero(); + PyObject *py_gil_disabled = _PyLong_GetZero(); #endif - if (PyDict_SetItemString(config, "Py_GIL_DISABLED", py_nogil) < 0) { + if (PyDict_SetItemString(config, "Py_GIL_DISABLED", py_gil_disabled) < 0) { Py_DECREF(config); return NULL; }