diff --git a/tests/regressiontests/admin_scripts/tests.py b/tests/regressiontests/admin_scripts/tests.py index 9b79c0e6d8e..f1b167eec7b 100644 --- a/tests/regressiontests/admin_scripts/tests.py +++ b/tests/regressiontests/admin_scripts/tests.py @@ -48,7 +48,7 @@ class AdminScriptTestCase(unittest.TestCase): try: if sys.platform.startswith('java'): # Jython produces module$py.class files - os.remove(re.sub(r'\.py$', '$py.class', fullname)) + os.remove(re.sub(r'\.py$', '$py.class', full_name)) else: # CPython produces module.pyc files os.remove(full_name + 'c')