diff options
author | Guido van Rossum <guido@python.org> | 2001-04-10 14:46:39 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-04-10 14:46:39 (GMT) |
commit | bfce016a30da85c4a637ab4825e429da482a80c0 (patch) | |
tree | 9f7c4a1f2d1b41ac4a3659039948e2de6f59c9fb /Lib/test | |
parent | 41763b96039e2270a9b9d01702215e4642343134 (diff) | |
download | cpython-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.
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_zipfile.py | 1 |
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 |