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

This commit is contained in:
Serhiy Storchaka 2017-11-10 12:09:39 +02:00 committed by GitHub
parent a1718bc7e0
commit 5e0df74b3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View 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)