From: Guido van Rossum <guido@python.org>
Date: Tue, 10 Apr 2001 14:46:39 +0000 (+0000)
Subject: When zlib can't be imported, zipfile raises RuntimeError, which causes
X-Git-Tag: v2.1c1~130
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bfce016a30da85c4a637ab4825e429da482a80c0;p=python

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.
---

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