8000 Rewritten version of Finn Bock's SF patch #446907 (Allow jython to · python/cpython@66e1a25 · GitHub
[go: up one dir, main page]

Skip to content

Commit 66e1a25

Browse files
committed
Rewritten version of Finn Bock's SF patch #446907 (Allow jython to
complete test_import).
1 parent a7f6de7 commit 66e1a25

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Lib/test/test_import.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,11 @@
1919
sys.path.insert(0, os.curdir)
2020

2121
source = TESTFN + ".py"
22-
pyc = TESTFN + ".pyc"
2322
pyo = TESTFN + ".pyo"
23+
if sys.platform.endswith('java'):
24+
pyc = TESTFN + "$py.class"
25+
else:
26+
pyc = TESTFN + ".pyc"
2427

2528
f = open(source, "w")
2629
print >> f, "# This will test Python's ability to import a .py file"

0 commit comments

Comments
 (0)
0