Make this test succeed even when using "import test.test_zlib".

This commit is contained in:
Guido van Rossum 1997-12-18 05:21:07 +00:00
parent ffeb593816
commit 629bcfb8f9
1 changed files with 5 additions and 2 deletions

View File

@ -3,8 +3,11 @@ import sys
import imp
import string
t = imp.find_module('test_zlib')
file = t[0]
try:
t = imp.find_module('test_zlib')
file = t[0]
except ImportError:
file = open(__file__)
buf = file.read() * 8
file.close()