[Python-checkins] cpython: Skip test_venv.test_with_pip() if ctypes miss
victor.stinner
python-checkins at python.org
Fri Mar 25 07:32:07 EDT 2016
https://hg.python.org/cpython/rev/cd7cb503ab67
changeset: 100744:cd7cb503ab67
user: Victor Stinner <victor.stinner at gmail.com>
date: Fri Mar 25 12:27:02 2016 +0100
summary:
Skip test_venv.test_with_pip() if ctypes miss
Issue #26610.
files:
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
--- a/Lib/test/test_venv.py
+++ b/Lib/test/test_venv.py
@@ -31,6 +31,11 @@
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 @@
@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:
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list