diff options
author | Tim Peters <tim.peters@gmail.com> | 2001-08-01 19:38:56 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2001-08-01 19:38:56 (GMT) |
commit | 66e1a254a19c0c95216d54e64c5c2171e5880ed9 (patch) | |
tree | eb030d328599ca4f4c61e3151c7b5af7299bf8a9 /Lib | |
parent | a7f6de76910ce0864e2cdb0a9cacf250bef3c57a (diff) | |
download | cpython-66e1a254a19c0c95216d54e64c5c2171e5880ed9.zip cpython-66e1a254a19c0c95216d54e64c5c2171e5880ed9.tar.gz cpython-66e1a254a19c0c95216d54e64c5c2171e5880ed9.tar.bz2 |
Rewritten version of Finn Bock's SF patch #446907 (Allow jython to
complete test_import).
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_import.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/test/test_import.py b/Lib/test/test_import.py index 5419b5a..0f9841c 100644 --- a/Lib/test/test_import.py +++ b/Lib/test/test_import.py @@ -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" |