Kaydet (Commit) 7997fa2e authored tarafından Miss Islington (bot)'s avatar Miss Islington (bot) Kaydeden (comit) Serhiy Storchaka

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

(cherry picked from commit 5e0df74b)
üst b9a40aca
...@@ -13,7 +13,7 @@ import struct ...@@ -13,7 +13,7 @@ import struct
import subprocess import subprocess
import sys import sys
import tempfile import tempfile
from test.support import (captured_stdout, captured_stderr, from test.support import (captured_stdout, captured_stderr, requires_zlib,
can_symlink, EnvironmentVarGuard, rmtree) can_symlink, EnvironmentVarGuard, rmtree)
import unittest import unittest
import venv import venv
...@@ -424,6 +424,7 @@ class EnsurePipTest(BaseTest): ...@@ -424,6 +424,7 @@ class EnsurePipTest(BaseTest):
' module unconditionally') ' module unconditionally')
# Issue #26610: pip/pep425tags.py requires ctypes # Issue #26610: pip/pep425tags.py requires ctypes
@unittest.skipUnless(ctypes, 'pip requires ctypes') @unittest.skipUnless(ctypes, 'pip requires ctypes')
@requires_zlib
def test_with_pip(self): def test_with_pip(self):
self.do_test_with_pip(False) self.do_test_with_pip(False)
self.do_test_with_pip(True) self.do_test_with_pip(True)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment