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

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


https://github.com/python/cpython/commit/5e0df74b3bc6391e9a7eba0fd84531ed99a78ae9
commit: 5e0df74b3bc6391e9a7eba0fd84531ed99a78ae9
branch: master
author: Serhiy Storchaka <storchaka at gmail.com>
committer: GitHub <noreply at github.com>
date: 2017-11-10T12:09:39+02:00
summary:

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

files:
M Lib/test/test_venv.py

diff --git a/Lib/test/test_venv.py b/Lib/test/test_venv.py
index aac010b3aaf..2d76e65271b 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 threading
 import unittest
@@ -417,6 +417,7 @@ def do_test_with_pip(self, system_site_packages):
 
     # 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