File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1209,8 +1209,8 @@ def test_pystats(self):
1209
1209
@unittest .skipUnless (hasattr (sys , 'abiflags' ), 'need sys.abiflags' )
1210
1210
def test_disable_gil_abi (self ):
1211
1211
abi_threaded = 't' in sys .abiflags
1212
- py_nogil = (sysconfig .get_config_var ('Py_GIL_DISABLED' ) == 1 )
1213
- self .assertEqual (py_nogil , abi_threaded )
1212
+ py_gil_disabled = (sysconfig .get_config_var ('Py_GIL_DISABLED' ) == 1 )
1213
+ self .assertEqual (py_gil_disabled , abi_threaded )
1214
1214
1215
1215
1216
1216
@test .support .cpython_only
Original file line number Diff line number Diff line change @@ -58,11 +58,11 @@ _sysconfig_config_vars_impl(PyObject *module)
58
58
#endif
59
59
60
60
#ifdef Py_GIL_DISABLED
61
- PyObject * py_nogil = _PyLong_GetOne ();
61
+ PyObject * py_gil_disabled = _PyLong_GetOne ();
62
62
#else
63
- PyObject * py_nogil = _PyLong_GetZero ();
63
+ PyObject * py_gil_disabled = _PyLong_GetZero ();
64
64
#endif
65
- if (PyDict_SetItemString (config , "Py_GIL_DISABLED" , py_nogil ) < 0 ) {
65
+ if (PyDict_SetItemString (config , "Py_GIL_DISABLED" , py_gil_disabled ) < 0 ) {
66
66
Py_DECREF (config );
67
67
return NULL ;
68
68
}
You can’t perform that action at this time.
0 commit comments