mirror of https://github.com/python/cpython
Make this test succeed even when using "import test.test_zlib".
This commit is contained in:
parent
ffeb593816
commit
629bcfb8f9
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue