]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #26610: Skip test_with_pip if _ctypes is not available in OpenIndiana
authorBerker Peksag <berker.peksag@gmail.com>
Sun, 18 Sep 2016 11:52:25 +0000 (14:52 +0300)
committerBerker Peksag <berker.peksag@gmail.com>
Sun, 18 Sep 2016 11:52:25 +0000 (14:52 +0300)
Lib/test/test_venv.py

index d2c986e71e25d986c9500b77a5166bbcdf51f01b..3999d1f9c40ffd291ab3ca51e294ef3f46c1c354 100644 (file)
@@ -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: