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 imp
|
||||||
import string
|
import string
|
||||||
|
|
||||||
|
try:
|
||||||
t = imp.find_module('test_zlib')
|
t = imp.find_module('test_zlib')
|
||||||
file = t[0]
|
file = t[0]
|
||||||
|
except ImportError:
|
||||||
|
file = open(__file__)
|
||||||
buf = file.read() * 8
|
buf = file.read() * 8
|
||||||
file.close()
|
file.close()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue