[Python-checkins] cpython (3.5): Issue #26610: Skip test_with_pip if _ctypes is not available in OpenIndiana

berker.peksag python-checkins at python.org
Sun Sep 18 07:52:38 EDT 2016


https://hg.python.org/cpython/rev/82bd70f83796
changeset: 103918:82bd70f83796
branch: 3.5
parent: 103915:20c4ad866620
user: Berker Peksag <berker.peksag at gmail.com>
date: Sun Sep 18 14:52:25 2016 +0300
summary:
 Issue #26610: Skip test_with_pip if _ctypes is not available in OpenIndiana
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

AltStyle によって変換されたページ (->オリジナル) /