summaryrefslogtreecommitdiff
path: root/Lib/test/test_zipfile.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-04-10 14:46:39 +0000
committerGuido van Rossum <guido@python.org>2001-04-10 14:46:39 +0000
commitf7b35a966d50aec4d92b8d73143514e046731c7b (patch)
tree2bc05dd32fff0a7d5d0342a7781bfc35cc6ebc8f /Lib/test/test_zipfile.py
parent639270b6dac3b095a0aaf162b95052cffe3c4658 (diff)
downloadcpython-f7b35a966d50aec4d92b8d73143514e046731c7b.tar.gz
When zlib can't be imported, zipfile raises RuntimeError, which causes
the test to be marked as failing rather than skipped. Add an explicit "import zlib" to prevent this.
Diffstat (limited to 'Lib/test/test_zipfile.py')
-rw-r--r--Lib/test/test_zipfile.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_zipfile.py b/Lib/test/test_zipfile.py
index bf7770b8cb..87e99ec071 100644
--- a/Lib/test/test_zipfile.py
+++ b/Lib/test/test_zipfile.py
@@ -1,3 +1,4 @@
+import zlib # implied prerequisite
import zipfile, os, StringIO, tempfile
from test_support import TestFailed