Commit 9d643639 authored by Guido van Rossum's avatar Guido van Rossum

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

parent dd5ddcff
...@@ -3,8 +3,11 @@ import sys ...@@ -3,8 +3,11 @@ import sys
import imp import imp
import string import string
t = imp.find_module('test_zlib') try:
file = t[0] t = imp.find_module('test_zlib')
file = t[0]
except ImportError:
file = open(__file__)
buf = file.read() * 8 buf = file.read() * 8
file.close() file.close()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment