mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
gh-92820: Skip test_cppext if _ctypes is missing (#92844)
Add @test.support.requires_venv_with_pip decorator.
This commit is contained in:
parent
a487623c6b
commit
ca0cc9c433
3 changed files with 22 additions and 4 deletions
|
@ -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():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue