We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 299cec6 commit 21d2e73Copy full SHA for 21d2e73
1 file changed
Lib/test/test_sysconfig.py
@@ -644,9 +644,16 @@ def test_abiflags(self):
644
self.assertEndsWith(ABIFLAGS, 'd')
645
else:
646
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)
652
if support.Py_GIL_DISABLED:
653
+ self.assertEqual(abi_thread, 't')
654
self.assertIn('t', ABIFLAGS)
655
656
+ self.assertEqual(abi_thread, '')
657
self.assertNotIn('t', ABIFLAGS)
658
659
@requires_subprocess()
0 commit comments