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.
This commit is contained in:
Guido van Rossum 2001-04-10 14:46:39 +00:00
parent 41763b9603
commit bfce016a30
1 changed files with 1 additions and 0 deletions

View File

@ -1,3 +1,4 @@
import zlib # implied prerequisite
import zipfile, os, StringIO, tempfile import zipfile, os, StringIO, tempfile
from test_support import TestFailed from test_support import TestFailed