mirror of
https://github.com/python/cpython.git
synced 2025-08-22 17:55:18 +00:00
![]() In `Lib/test/support/import_helper.py`, the function `make_legacy_pyc` makes a call to `os.rename` which can fail when the source and target live on different devices. This happens (for example) when `PYTHONPYCACHEPREFIX` is set to a directory anywhere on disk, while a ramdisk is mounted on `/tmp` (the latter of which is the default on various Linux distros). Replacing `os.rename` with `shutil.move` fixes this.
Automerge-Triggered-By: GH:brettcannon
(cherry picked from commit
|
||
---|---|---|
.. | ||
__init__.py | ||
bytecode_helper.py | ||
hashlib_helper.py | ||
import_helper.py | ||
interpreters.py | ||
logging_helper.py | ||
os_helper.py | ||
script_helper.py | ||
socket_helper.py | ||
testresult.py | ||
threading_helper.py | ||
warnings_helper.py |