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 failures when running with PYTHONDONTWRITEBYTECODE #64995
Comments
$ find . -name \*.pyc -delete
$ PYTHONDONTWRITEBYTECODE=1 make test Three test failures, which all seem to be duplicates of: ====================================================================== Traceback (most recent call last):
File "/home/rosuav/cpython/Lib/test/test_importlib/source/test_file_loader.py", line 215, in test_timestamp_overflow
self.assertTrue(os.path.exists(compiled))
AssertionError: False is not true It goes looking for the .pyc cached file, does not find it, and fails. Test should probably be skipped if bytecode isn't being written. |
Here's a patch to skip the test if PYTHONDONTWRITEBYTECODE is not None. |
Updated patch adressing Brett's comment. Thanks! |
LGTM; I (or some other core dev) will commit when there's time. |
New changeset 8afcfe6dfd6e by Benjamin Peterson in branch '3.3': New changeset 15a0bbfb27f1 by Benjamin Peterson in branch 'default': |
Thanks for the fast turn-around, guys! Not that it matters hugely - I happened to have bytecode writing disabled to test something unrelated and noticed the test failure. |
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: