gh-109740: Use 't' in --disable-gil SOABI (#109922)

Shared libraries for CPython 3.13 are now marked with a 't' for
threading. For example, `binascii.cpython-313t-darwin.so`.
This commit is contained in:
Sam Gross 2023-09-27 11:24:12 -04:00 committed by GitHub
parent b35f0843fc
commit 773614e03a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 72 additions and 49 deletions

View file

@ -1210,6 +1210,13 @@ class SysModuleTest(unittest.TestCase):
sys._stats_clear()
sys._stats_dump()
@test.support.cpython_only
@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)
self.assertEqual(py_nogil, abi_threaded)
@test.support.cpython_only
class UnraisableHookTest(unittest.TestCase):