Skip to content

Commit 21d2e73

Browse files
committed
Split 't' flag to another test
1 parent 299cec6 commit 21d2e73

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Lib/test/test_sysconfig.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -644,9 +644,16 @@ def test_abiflags(self):
644644
self.assertEndsWith(ABIFLAGS, 'd')
645645
else:
646646
self.assertNotIn('d', ABIFLAGS)
647+
648+
def test_abi_thread(self):
649+
abi_thread = sysconfig.get_config_var('abi_thread')
650+
ABIFLAGS = sysconfig.get_config_var('ABIFLAGS')
651+
self.assertIsInstance(abi_thread, str)
647652
if support.Py_GIL_DISABLED:
653+
self.assertEqual(abi_thread, 't')
648654
self.assertIn('t', ABIFLAGS)
649655
else:
656+
self.assertEqual(abi_thread, '')
650657
self.assertNotIn('t', ABIFLAGS)
651658

652659
@requires_subprocess()

0 commit comments

Comments
 (0)