diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py index b16e1e7f70a24ac..8bc199772315722 100644 --- a/Lib/test/test_sys.py +++ b/Lib/test/test_sys.py @@ -1208,7 +1208,7 @@ def test_pystats(self): @test.support.cpython_only @unittest.skipUnless(hasattr(sys, 'abiflags'), 'need sys.abiflags') def test_disable_gil_abi(self): - abi_threaded = 't' in sys.abiflags + abi_threaded = 'x' in sys.abiflags py_nogil = (sysconfig.get_config_var('Py_NOGIL') == 1) self.assertEqual(py_nogil, abi_threaded)