[Python-checkins] cpython: Issue #19744 (temp workaround): without ssl, skip pip test

nick.coghlan python-checkins at python.org
Sun Nov 24 03:45:38 CET 2013


http://hg.python.org/cpython/rev/9891ba920f3c
changeset:   87483:9891ba920f3c
user:        Nick Coghlan <ncoghlan at gmail.com>
date:        Sun Nov 24 12:45:25 2013 +1000
summary:
  Issue #19744 (temp workaround): without ssl, skip pip test

files:
  Lib/test/test_venv.py |  6 ++++++
  1 files changed, 6 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
@@ -15,6 +15,10 @@
                           can_symlink, EnvironmentVarGuard)
 import unittest
 import venv
+try:
+    import ssl
+except ImportError:
+    ssl = None
 
 skipInVenv = unittest.skipIf(sys.prefix != sys.base_prefix,
                              'Test not appropriate in a venv')
@@ -278,6 +282,8 @@
         self.assertEqual(err, b"")
         self.assertEqual(out.strip(), b"OK")
 
+    # Temporary skip for http://bugs.python.org/issue19744
+    @unittest.skipIf(ssl is None, 'pip needs SSL support')
     def test_with_pip(self):
         shutil.rmtree(self.env_dir)
         with EnvironmentVarGuard() as envvars:

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list