summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2016-09-18 11:52:25 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2016-09-18 11:52:25 (GMT)
commit5a5ae745ff5f18f1baf35438eb7f532e58e6b5a6 (patch)
tree80f405a8d41c21870c65ede0df23ca17e703849a /Lib
parentbf3c1c32354499515496fa38215d103cb50dde3b (diff)
downloadcpython-5a5ae745ff5f18f1baf35438eb7f532e58e6b5a6.zip
cpython-5a5ae745ff5f18f1baf35438eb7f532e58e6b5a6.tar.gz
cpython-5a5ae745ff5f18f1baf35438eb7f532e58e6b5a6.tar.bz2
Issue #26610: Skip test_with_pip if _ctypes is not available in OpenIndiana
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_venv.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/test/test_venv.py b/Lib/test/test_venv.py
index d2c986e..3999d1f 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: