mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
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:
parent
b35f0843fc
commit
773614e03a
6 changed files with 72 additions and 49 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue