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_import failures #56332
Comments
I get the following failures under a fresh checkout: ====================================================================== Traceback (most recent call last):
File "/home/antoine/t/cpython/Lib/test/test_import.py", line 253, in test_file_to_source
make_legacy_pyc(source)
File "/home/antoine/t/cpython/Lib/test/support.py", line 217, in make_legacy_pyc
os.rename(pyc_file, legacy_pyc)
OSError: [Errno 2] No such file or directory ====================================================================== Traceback (most recent call last):
File "/home/antoine/t/cpython/Lib/test/test_import.py", line 584, in test___cached___legacy_pyc
pyc_file = make_legacy_pyc(self.source)
File "/home/antoine/t/cpython/Lib/test/support.py", line 217, in make_legacy_pyc
os.rename(pyc_file, legacy_pyc)
OSError: [Errno 2] No such file or directory ====================================================================== Traceback (most recent call last):
File "/home/antoine/t/cpython/Lib/test/test_import.py", line 564, in test_missing_source_legacy
pyc_file = make_legacy_pyc(self.source)
File "/home/antoine/t/cpython/Lib/test/support.py", line 217, in make_legacy_pyc
os.rename(pyc_file, legacy_pyc)
OSError: [Errno 2] No such file or directory ====================================================================== Traceback (most recent call last):
File "/home/antoine/t/cpython/Lib/test/test_import.py", line 112, in test_execute_bit_not_copied
self.fail("__import__ did not result in creation of "
AssertionError: __import__ did not result in creation of either a .pyc or .pyo file ====================================================================== Traceback (most recent call last):
File "/home/antoine/t/cpython/Lib/test/test_import.py", line 531, in test_import_pyc_path
self.assertTrue(os.path.exists('__pycache__'))
AssertionError: False is not true ====================================================================== Traceback (most recent call last):
File "/home/antoine/t/cpython/Lib/test/test_import.py", line 552, in test_missing_source
self.assertTrue(os.path.exists(pyc_file))
AssertionError: False is not true ====================================================================== Traceback (most recent call last):
File "/home/antoine/t/cpython/Lib/test/test_import.py", line 543, in test_unwritable_directory
self.assertTrue(os.path.exists('__pycache__'))
AssertionError: False is not true |
This is due to PYTHONDONTWRITEBYTECODE being set. Not sure this is worth fixing. |
Duplicate of bpo-12117. |
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: