summaryrefslogtreecommitdiff
path: root/tests/test_build_py.py
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2015-04-13 14:21:02 -0400
committerBrett Cannon <brett@python.org>2015-04-13 14:21:02 -0400
commit6b108b8442eba8295a12655281e1b32b85a94a7b (patch)
treef4467d4bb4b90cf7d555a50c633dadb10f5b2eb6 /tests/test_build_py.py
parent5c5812dfa66df29d6b59eeb7044907f0c02f6ff8 (diff)
downloadpython-setuptools-git-6b108b8442eba8295a12655281e1b32b85a94a7b.tar.gz
Issue #23731: Implement PEP 488.
The concept of .pyo files no longer exists. Now .pyc files have an optional `opt-` tag which specifies if any extra optimizations beyond the peepholer were applied.
Diffstat (limited to 'tests/test_build_py.py')
-rw-r--r--tests/test_build_py.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_build_py.py b/tests/test_build_py.py
index c8f6b899..18283dc7 100644
--- a/tests/test_build_py.py
+++ b/tests/test_build_py.py
@@ -120,8 +120,8 @@ class BuildPyTestCase(support.TempdirManager,
found = os.listdir(cmd.build_lib)
self.assertEqual(sorted(found), ['__pycache__', 'boiledeggs.py'])
found = os.listdir(os.path.join(cmd.build_lib, '__pycache__'))
- self.assertEqual(sorted(found),
- ['boiledeggs.%s.pyo' % sys.implementation.cache_tag])
+ expect = 'boiledeggs.{}.opt-1.pyc'.format(sys.implementation.cache_tag)
+ self.assertEqual(sorted(found), [expect])
def test_dir_in_package_data(self):
"""