summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2017-11-10 10:09:24 (GMT)
committerGitHub <noreply@github.com>2017-11-10 10:09:24 (GMT)
commita1718bc7e0455ec5019e800d4172947bb4a07962 (patch)
tree8cece183effdb1c454d87807cb86301620cdacb4 /Lib
parent191e993365ac3206f46132dcf46236471ec54bfa (diff)
downloadcpython-a1718bc7e0455ec5019e800d4172947bb4a07962.zip
cpython-a1718bc7e0455ec5019e800d4172947bb4a07962.tar.gz
cpython-a1718bc7e0455ec5019e800d4172947bb4a07962.tar.bz2
bpo-31998: Fix test_zipapp in case the zlib module is not available. (#4358)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_zipapp.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_zipapp.py b/Lib/test/test_zipapp.py
index 3602b99..948833b 100644
--- a/Lib/test/test_zipapp.py
+++ b/Lib/test/test_zipapp.py
@@ -8,6 +8,7 @@ import tempfile
import unittest
import zipapp
import zipfile
+from test.support import requires_zlib
from unittest.mock import patch
@@ -100,6 +101,7 @@ class ZipAppTest(unittest.TestCase):
expected_target = self.tmpdir / 'source.pyz'
self.assertTrue(expected_target.is_file())
+ @requires_zlib
def test_create_archive_with_compression(self):
# Test packing a directory into a compressed archive.
source = self.tmpdir / 'source'