gh-92820: Skip test_cppext if _ctypes is missing (#92844)

Add @test.support.requires_venv_with_pip decorator.
This commit is contained in:
Victor Stinner 2022-05-16 13:54:45 +02:00 committed by GitHub
parent a487623c6b
commit ca0cc9c433
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 22 additions and 4 deletions

View file

@ -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():