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

complete test_import).
This commit is contained in:
Tim Peters 2001-08-01 19:38:56 +00:00
parent a7f6de7691
commit 66e1a254a1
1 changed files with 4 additions and 1 deletions

View File

@ -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"