mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Fix omission in test for packaging install_distinfo command.
The code does not write checksum or file length for .pyc and .pyo in the RECORD file, in compliance with PEP 376, but the test forgot to take .pyo into account. This was not caught because there were no .pyo in the checkout, but after installing there are .pyo files created by compileall, and the test picks them up.
This commit is contained in:
parent
edd95dd3cb
commit
f53cd89006
1 changed files with 1 additions and 1 deletions
|
@ -162,7 +162,7 @@ class InstallDistinfoTestCase(support.TempdirManager,
|
||||||
|
|
||||||
expected = []
|
expected = []
|
||||||
for f in install.get_outputs():
|
for f in install.get_outputs():
|
||||||
if (f.endswith('.pyc') or f == os.path.join(
|
if (f.endswith(('.pyc', '.pyo')) or f == os.path.join(
|
||||||
install_dir, 'foo-1.0.dist-info', 'RECORD')):
|
install_dir, 'foo-1.0.dist-info', 'RECORD')):
|
||||||
expected.append([f, '', ''])
|
expected.append([f, '', ''])
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue