From d071615bdeb026ae7746cf214325504fb424803b Mon Sep 17 00:00:00 2001 From: Sam Gross Date: Fri, 29 Sep 2023 14:52:45 -0400 Subject: [PATCH] gh-110119: Temporarily skip test_cppext on --disable-gil builds. 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 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Lib/test/test_cppext/__init__.py b/Lib/test/test_cppext/__init__.py index 74bf420900367e..25b6fc64a03a51 100644 --- a/Lib/test/test_cppext/__init__.py +++ b/Lib/test/test_cppext/__init__.py @@ -14,6 +14,10 @@ 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')