diff options
author | Nick Coghlan <ncoghlan@gmail.com> | 2013-11-24 02:45:25 (GMT) |
---|---|---|
committer | Nick Coghlan <ncoghlan@gmail.com> | 2013-11-24 02:45:25 (GMT) |
commit | 878d258a22c6f40401671dd329b76516a03a2b71 (patch) | |
tree | fb1357db7c6948ed8232dd68f97566e715749e1f /Lib/test/test_venv.py | |
parent | b94efe6cefbc80132087c64385cace6757541b3f (diff) | |
download | cpython-878d258a22c6f40401671dd329b76516a03a2b71.zip cpython-878d258a22c6f40401671dd329b76516a03a2b71.tar.gz cpython-878d258a22c6f40401671dd329b76516a03a2b71.tar.bz2 |
Issue #19744 (temp workaround): without ssl, skip pip test
Diffstat (limited to 'Lib/test/test_venv.py')
-rw-r--r-- | 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 index 613d9c3..bc210aa 100644 --- a/Lib/test/test_venv.py +++ b/Lib/test/test_venv.py @@ -15,6 +15,10 @@ from test.support import (captured_stdout, captured_stderr, run_unittest, 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 @@ class EnsurePipTest(BaseTest): 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: |