Commit 66e1a254 authored by Tim Peters's avatar Tim Peters

Rewritten version of Finn Bock's SF patch #446907 (Allow jython to

complete test_import).
parent a7f6de76
......@@ -19,8 +19,11 @@ import double_const # don't blink -- that *was* the test
sys.path.insert(0, os.curdir)
source = TESTFN + ".py"
pyc = TESTFN + ".pyc"
pyo = TESTFN + ".pyo"
if sys.platform.endswith('java'):
pyc = TESTFN + "$py.class"
else:
pyc = TESTFN + ".pyc"
f = open(source, "w")
print >> f, "# This will test Python's ability to import a .py file"
......
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