mirror of
https://github.com/python/cpython.git
synced 2026-01-06 07:22:09 +00:00
Make this test succeed even when using "import test.test_zlib".
This commit is contained in:
parent
ffeb593816
commit
629bcfb8f9
1 changed files with 5 additions and 2 deletions
|
|
@ -3,8 +3,11 @@
|
|||
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…
Add table
Add a link
Reference in a new issue