]> granicus.if.org Git - python/commitdiff
Rewritten version of Finn Bock's SF patch #446907 (Allow jython to
authorTim Peters <tim.peters@gmail.com>
Wed, 1 Aug 2001 19:38:56 +0000 (19:38 +0000)
committerTim Peters <tim.peters@gmail.com>
Wed, 1 Aug 2001 19:38:56 +0000 (19:38 +0000)
complete test_import).

Lib/test/test_import.py

index 5419b5af7f7bae0afdc41c6ba6b8d1a73e772f1f..0f9841c5b88e8438b3838ef1516292542ed720b4 100644 (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"