Skip to content

Commit 2973970

Browse files
authored
gh-110119: Temporarily skip test_cppext on --disable-gil builds. (#110123)
The current version of pip does not support "t" in the ABI flags. Skip the test in `--disable-gil` builds until we can update pip.
1 parent 5ae6c6d commit 2973970

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Lib/test/test_cppext/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
SETUP = os.path.join(os.path.dirname(__file__), 'setup.py')
1515

1616

17+
# gh-110119: pip does not currently support 't' in the ABI flag use by
18+
# --disable-gil builds. Once it does, we can remove this skip.
19+
@unittest.skipIf(sysconfig.get_config_var('Py_NOGIL') == 1,
20+
'test does not work with --disable-gil')
1721
@support.requires_subprocess()
1822
class TestCPPExt(unittest.TestCase):
1923
@support.requires_resource('cpu')

0 commit comments

Comments
 (0)