Rewritten version of Finn Bock's SF patch #446907 (Allow jython to
complete test_import).
This commit is contained in:
parent
a7f6de7691
commit
66e1a254a1
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue