mirror of
https://github.com/python/cpython.git
synced 2025-10-03 13:45:29 +00:00
bpo-31999: Fix test_venv in case the zlib module is not available. (GH-4359) (#4360)
(cherry picked from commit 5e0df74b3b
)
This commit is contained in:
parent
b9a40aca29
commit
7997fa2e21
1 changed files with 2 additions and 1 deletions
|
@ -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):
|
||||||
' 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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue