]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-110119: Temporarily skip test_cppext on --disable-gil builds. (#110123)
authorSam Gross <colesbury@gmail.com>
Fri, 29 Sep 2023 20:50:51 +0000 (20:50 +0000)
committerGitHub <noreply@github.com>
Fri, 29 Sep 2023 20:50:51 +0000 (13:50 -0700)
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.

Lib/test/test_cppext/__init__.py

index 74bf420900367eff790214f049988367d7e4f30e..25b6fc64a03a518d5ae4f91cb4fefb881668648e 100644 (file)
@@ -14,6 +14,10 @@ SOURCE = os.path.join(os.path.dirname(__file__), 'extension.cpp')
 SETUP = os.path.join(os.path.dirname(__file__), 'setup.py')
 
 
+# gh-110119: pip does not currently support 't' in the ABI flag use by
+# --disable-gil builds. Once it does, we can remove this skip.
+@unittest.skipIf(sysconfig.get_config_var('Py_NOGIL') == 1,
+                 'test does not work with --disable-gil')
 @support.requires_subprocess()
 class TestCPPExt(unittest.TestCase):
     @support.requires_resource('cpu')