summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-04-10 14:46:39 (GMT)
committerGuido van Rossum <guido@python.org>2001-04-10 14:46:39 (GMT)
commitbfce016a30da85c4a637ab4825e429da482a80c0 (patch)
tree9f7c4a1f2d1b41ac4a3659039948e2de6f59c9fb
parent41763b96039e2270a9b9d01702215e4642343134 (diff)
downloadcpython-bfce016a30da85c4a637ab4825e429da482a80c0.zip
cpython-bfce016a30da85c4a637ab4825e429da482a80c0.tar.gz
cpython-bfce016a30da85c4a637ab4825e429da482a80c0.tar.bz2
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.
-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 bf7770b..87e99ec 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