diff options
Diffstat (limited to 'python/tests/par_test.py')
-rw-r--r-- | python/tests/par_test.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/python/tests/par_test.py b/python/tests/par_test.py index 56a5063c4..1e03f1669 100644 --- a/python/tests/par_test.py +++ b/python/tests/par_test.py @@ -27,7 +27,10 @@ def assert_equal(what, a, b): failed = True assert_equal("__name__", __name__, "__main__") -assert_equal("os.path.basename(__file__)", os.path.basename(__file__), "par_test.py") +fileName = os.path.basename(__file__) +if fileName.endswith('.pyc'): + fileName = fileName[:-1] +assert_equal("os.path.basename(__file__)", fileName, "par_test.py") archive = os.path.dirname(__file__) |