diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2017-11-10 10:09:39 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-10 10:09:39 (GMT) |
commit | 5e0df74b3bc6391e9a7eba0fd84531ed99a78ae9 (patch) | |
tree | b48ad6918a53d81b11e9a5500283e1a41a5b018f /Lib/test/test_venv.py | |
parent | a1718bc7e0455ec5019e800d4172947bb4a07962 (diff) | |
download | cpython-5e0df74b3bc6391e9a7eba0fd84531ed99a78ae9.zip cpython-5e0df74b3bc6391e9a7eba0fd84531ed99a78ae9.tar.gz cpython-5e0df74b3bc6391e9a7eba0fd84531ed99a78ae9.tar.bz2 |
bpo-31999: Fix test_venv in case the zlib module is not available. (#4359)
Diffstat (limited to 'Lib/test/test_venv.py')
-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 aac010b..2d76e65 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 threading import unittest @@ -417,6 +417,7 @@ class EnsurePipTest(BaseTest): # 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) |