diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2017-11-10 10:56:59 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2017-11-10 10:56:59 (GMT) |
commit | 7997fa2e2159cfce0cfbe985a953174ac86694a4 (patch) | |
tree | 6f89b1f4d3b95d330e5356ff7dd30976623a41a8 /Lib | |
parent | b9a40aca2935d2569191844c88f8b61269e383cb (diff) | |
download | cpython-7997fa2e2159cfce0cfbe985a953174ac86694a4.zip cpython-7997fa2e2159cfce0cfbe985a953174ac86694a4.tar.gz cpython-7997fa2e2159cfce0cfbe985a953174ac86694a4.tar.bz2 |
bpo-31999: Fix test_venv in case the zlib module is not available. (GH-4359) (#4360)
(cherry picked from commit 5e0df74b3bc6391e9a7eba0fd84531ed99a78ae9)
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_venv.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_venv.py b/Lib/test/test_venv.py index 2691632..0c1ea89 100644 --- a/Lib/test/test_venv.py +++ b/Lib/test/test_venv.py @@ -13,7 +13,7 @@ import struct import subprocess import sys import tempfile -from test.support import (captured_stdout, captured_stderr, +from test.support import (captured_stdout, captured_stderr, requires_zlib, can_symlink, EnvironmentVarGuard, rmtree) import unittest import venv @@ -424,6 +424,7 @@ class EnsurePipTest(BaseTest): ' module unconditionally') # Issue #26610: pip/pep425tags.py requires ctypes @unittest.skipUnless(ctypes, 'pip requires ctypes') + @requires_zlib def test_with_pip(self): self.do_test_with_pip(False) self.do_test_with_pip(True) |