Skip to content

Commit 5e0df74

Browse files
bpo-31999: Fix test_venv in case the zlib module is not available. (#4359)
1 parent a1718bc commit 5e0df74

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/test/test_venv.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import subprocess
1414
import sys
1515
import tempfile
16-
from test.support import (captured_stdout, captured_stderr,
16+
from test.support import (captured_stdout, captured_stderr, requires_zlib,
1717
can_symlink, EnvironmentVarGuard, rmtree)
1818
import threading
1919
import unittest
@@ -417,6 +417,7 @@ def do_test_with_pip(self, system_site_packages):
417417

418418
# Issue #26610: pip/pep425tags.py requires ctypes
419419
@unittest.skipUnless(ctypes, 'pip requires ctypes')
420+
@requires_zlib
420421
def test_with_pip(self):
421422
self.do_test_with_pip(False)
422423
self.do_test_with_pip(True)

0 commit comments

Comments
 (0)