From bfce016a30da85c4a637ab4825e429da482a80c0 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 10 Apr 2001 14:46:39 +0000 Subject: [PATCH] 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. --- Lib/test/test_zipfile.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/test/test_zipfile.py b/Lib/test/test_zipfile.py index bf7770b8cb9..87e99ec0719 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