Author: Philip Jenvey <[email protected]>
Branch: py3k
Changeset: r60188:7b97d4152ebc
Date: 2013-01-18 13:29 -0800
http://bitbucket.org/pypy/pypy/changeset/7b97d4152ebc/
Log: .pyo are an impl detail
diff --git a/lib-python/3.2/test/test_compileall.py
b/lib-python/3.2/test/test_compileall.py
--- a/lib-python/3.2/test/test_compileall.py
+++ b/lib-python/3.2/test/test_compileall.py
@@ -174,10 +174,11 @@
# Ensure that the default behavior of compileall's CLI is to create
# PEP 3147 pyc/pyo files.
+ _pyo = 'pyo' if support.check_impl_detail() else 'pyc'
for name, ext, switch in [
('normal', 'pyc', []),
- ('optimize', 'pyo', ['-O']),
- ('doubleoptimize', 'pyo', ['-OO']),
+ ('optimize', _pyo, ['-O']),
+ ('doubleoptimize', _pyo, ['-OO']),
]:
def f(self, ext=ext, switch=switch):
script_helper.assert_python_ok(*(switch +
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit