New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test_distutils should honor PYTHONDONTWRITEBYTECODE #54040
Comments
Using py3k branch revision 84707, on Mac OSX 10.6, case-sensitive HFS+ filesystem. ====================================================================== Traceback (most recent call last):
File "/Users/cartman/Sources/py3k/Lib/distutils/tests/test_build_py.py", line 56, in test_package_data
self.assertTrue("__init__.pyc" in files)
AssertionError: False is not True |
Btw I configure with; ./configure --with-wctype-functions --with-fpectl --with-wide-unicode --with-computed-gotos --enable-ipv6 --with-universal-archs=64-bit MACOSX_DEPLOYMENT_TARGET=10.6 |
Thank you for the report. Can you apply this change and paste the new, more useful output?
|
I am not able to reproduce that failure running on 10.6 (case-sensitive HFS+) using your ./configure options and running the tests in the build directory (make test). How are you running the tests? Could there be a file or directory permissions issue? |
Problem is I set PYTHONDONTWRITEBYTECODE to 1, tests should disable this environmental variable before testing for *.pyc files. Closing as invalid. |
I noticed this bug in the tests of distutils2 and added it to my todo list some time ago. Tests looking at pycs should take PYTHONDONTWRITEBYTECODE into account and be skipped instead of failing. I’ll fix it. |
New changeset da7617248935 by Éric Araujo in branch '2.7': |
New changeset 3d56e559ffc6 by Éric Araujo in branch '3.1': New changeset 1370dc2690a2 by Éric Araujo in branch '3.2': New changeset c5d6a384132d by Éric Araujo in branch 'default': |
Now fixed, thanks for the report. |
Awesome, thank you! |
I now think the change I did was wrong. See bpo-12119. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: