Commits

Philip Jenvey committed 7b97d41

.pyo are an impl detail

Comments (0)

Files changed (1)

lib-python/3.2/test/test_compileall.py

 
     # 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 +