[Python-checkins] bpo-31999: Fix test_venv in case the zlib module is not available. (GH-4359) (#4360)

Serhiy Storchaka webhook-mailer at python.org
Fri Nov 10 05:57:03 EST 2017


https://github.com/python/cpython/commit/7997fa2e2159cfce0cfbe985a953174ac86694a4
commit: 7997fa2e2159cfce0cfbe985a953174ac86694a4
branch: 3.6
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: Serhiy Storchaka <storchaka at gmail.com>
date: 2017-11-10T12:56:59+02:00
summary:

bpo-31999: Fix test_venv in case the zlib module is not available. (GH-4359) (#4360)

(cherry picked from commit 5e0df74b3bc6391e9a7eba0fd84531ed99a78ae9)

files:
M Lib/test/test_venv.py

diff --git a/Lib/test/test_venv.py b/Lib/test/test_venv.py
index 2691632ff4f..0c1ea89b51c 100644
--- a/Lib/test/test_venv.py
+++ b/Lib/test/test_venv.py
@@ -13,7 +13,7 @@
 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 @@ def do_test_with_pip(self, system_site_packages):
                                     ' 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)



More information about the Python-checkins mailing list