diff options
author | Victor Stinner <vstinner@python.org> | 2022-05-16 11:54:45 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-16 11:54:45 (GMT) |
commit | ca0cc9c433830e14714a5cc93fb4e7254da3dd76 (patch) | |
tree | fcb86034dc525577123df52c589e7a9d15a52cb8 /Lib/test/test_cppext.py | |
parent | a487623c6b784847a8a1e47b4597b0ae2b8def87 (diff) | |
download | cpython-ca0cc9c433830e14714a5cc93fb4e7254da3dd76.zip cpython-ca0cc9c433830e14714a5cc93fb4e7254da3dd76.tar.gz cpython-ca0cc9c433830e14714a5cc93fb4e7254da3dd76.tar.bz2 |
gh-92820: Skip test_cppext if _ctypes is missing (#92844)
Add @test.support.requires_venv_with_pip decorator.
Diffstat (limited to 'Lib/test/test_cppext.py')
-rw-r--r-- | Lib/test/test_cppext.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_cppext.py b/Lib/test/test_cppext.py index 8acf0f1..9ed9061 100644 --- a/Lib/test/test_cppext.py +++ b/Lib/test/test_cppext.py @@ -19,6 +19,8 @@ class TestCPPExt(unittest.TestCase): # With MSVC, the linker fails with: cannot open file 'python311.lib' # https://github.com/python/cpython/pull/32175#issuecomment-1111175897 @unittest.skipIf(MS_WINDOWS, 'test fails on Windows') + # the test uses venv+pip: skip if it's not available + @support.requires_venv_with_pip() def test_build(self): # Build in a temporary directory with os_helper.temp_cwd(): |