diff --git a/Lib/test/test_import.py b/Lib/test/test_import.py index 0f9841c5b88..d0536095059 100644 --- a/Lib/test/test_import.py +++ b/Lib/test/test_import.py @@ -20,7 +20,7 @@ sys.path.insert(0, os.curdir) source = TESTFN + ".py" pyo = TESTFN + ".pyo" -if sys.platform.endswith('java'): +if sys.platform.startswith('java'): pyc = TESTFN + "$py.class" else: pyc = TESTFN + ".pyc"