summaryrefslogtreecommitdiffstatshomepage
path: root/tests/bytecode/pylib-tests/compileall.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bytecode/pylib-tests/compileall.py')
-rw-r--r--tests/bytecode/pylib-tests/compileall.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/bytecode/pylib-tests/compileall.py b/tests/bytecode/pylib-tests/compileall.py
index d3cff6a98a..d92a322cf6 100644
--- a/tests/bytecode/pylib-tests/compileall.py
+++ b/tests/bytecode/pylib-tests/compileall.py
@@ -88,7 +88,7 @@ def compile_file(fullname, ddir=None, force=False, rx=None, quiet=False,
return success
if os.path.isfile(fullname):
if legacy:
- cfile = fullname + ('c' if __debug__ else 'o')
+ cfile = fullname + 'c'
else:
if optimize >= 0:
cfile = imp.cache_from_source(fullname,