summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Gross <colesbury@gmail.com>2023-09-29 20:50:51 (GMT)
committerGitHub <noreply@github.com>2023-09-29 20:50:51 (GMT)
commit2973970af8fb3f117ab2e8ab2d82e8a541fcb1da (patch)
tree60d79d0616269e515e80a8338a98c6d6d56afbb0
parent5ae6c6d053311d411a077200f85698d51d5fe8b9 (diff)
downloadcpython-2973970af8fb3f117ab2e8ab2d82e8a541fcb1da.zip
cpython-2973970af8fb3f117ab2e8ab2d82e8a541fcb1da.tar.gz
cpython-2973970af8fb3f117ab2e8ab2d82e8a541fcb1da.tar.bz2
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.
-rw-r--r--Lib/test/test_cppext/__init__.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_cppext/__init__.py b/Lib/test/test_cppext/__init__.py
index 74bf420..25b6fc6 100644
--- a/Lib/test/test_cppext/__init__.py
+++ b/Lib/test/test_cppext/__init__.py
@@ -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')