]> granicus.if.org Git - python/commitdiff
bpo-31999: Fix test_venv in case the zlib module is not available. (#4359)
authorSerhiy Storchaka <storchaka@gmail.com>
Fri, 10 Nov 2017 10:09:39 +0000 (12:09 +0200)
committerGitHub <noreply@github.com>
Fri, 10 Nov 2017 10:09:39 +0000 (12:09 +0200)
Lib/test/test_venv.py

index aac010b3aaf844c0b8685533eece41c76a39ef83..2d76e65271b0b70892fc4f08971d360b3fee51a5 100644 (file)
@@ -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)