This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author notarealdeveloper
Recipients notarealdeveloper
Date 2022-02-07.20:30:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1644265836.23.0.316073606856.issue46678@roundup.psfhosted.org>
In-reply-to
Content
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 on a different device from where temporary files are stored. Replacing os.rename with shutil.move fixes it. Will submit a PR.
History
Date User Action Args
2022-02-07 20:30:36notarealdevelopersetrecipients: + notarealdeveloper
2022-02-07 20:30:36notarealdevelopersetmessageid: <1644265836.23.0.316073606856.issue46678@roundup.psfhosted.org>
2022-02-07 20:30:36notarealdeveloperlinkissue46678 messages
2022-02-07 20:30:36notarealdevelopercreate