Commit c95a6c1a authored by Guido van Rossum's avatar Guido van Rossum

Use imp.find_module() as the most certain way to find the test data.

parent 57fa217b
import zlib
import sys
import imp
buf = open(sys.argv[0]).read() * 8
t = imp.find_module('test_zlib')
file = t[0]
buf = file.read() * 8
file.close()
x = zlib.compress(buf)
y = zlib.decompress(x)
......
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