mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
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:
parent
41763b9603
commit
bfce016a30
1 changed files with 1 additions and 0 deletions
|
@ -1,3 +1,4 @@
|
|||
import zlib # implied prerequisite
|
||||
import zipfile, os, StringIO, tempfile
|
||||
from test_support import TestFailed
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue