diff options
Diffstat (limited to 'Lib/test')
-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" |