diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2016-03-25 11:27:02 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2016-03-25 11:27:02 (GMT) |
commit | b347788b825feb156510d6ec321930c6044bd202 (patch) | |
tree | 31569fa4c51f08e6bec4a4978aff0eb7cd8dad48 /Lib/test/test_venv.py | |
parent | a9a852c2b123031febf245d3bd37a529e0635d01 (diff) | |
download | cpython-b347788b825feb156510d6ec321930c6044bd202.zip cpython-b347788b825feb156510d6ec321930c6044bd202.tar.gz cpython-b347788b825feb156510d6ec321930c6044bd202.tar.bz2 |
Skip test_venv.test_with_pip() if ctypes miss
Issue #26610.
Diffstat (limited to 'Lib/test/test_venv.py')
-rw-r--r-- | Lib/test/test_venv.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/test/test_venv.py b/Lib/test/test_venv.py index dbb8b85..09741e3 100644 --- a/Lib/test/test_venv.py +++ b/Lib/test/test_venv.py @@ -31,6 +31,11 @@ try: except ImportError: threading = None +try: + import ctypes +except ImportError: + ctypes = None + skipInVenv = unittest.skipIf(sys.prefix != sys.base_prefix, 'Test not appropriate in a venv') @@ -327,6 +332,8 @@ class EnsurePipTest(BaseTest): @unittest.skipIf(ssl is None, ensurepip._MISSING_SSL_MESSAGE) @unittest.skipUnless(threading, 'some dependencies of pip import threading' ' module unconditionally') + # Issue #26610: pip/pep425tags.py requires ctypes + @unittest.skipUnless(ctypes, 'pip requires ctypes') def test_with_pip(self): rmtree(self.env_dir) with EnvironmentVarGuard() as envvars: |