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 shreyanavigyan
Recipients Guido.van.Rossum, jkloth, pablogsal, shreyanavigyan, vstinner
Date 2021-04-29.13:54:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1619704449.15.0.546716553998.issue37387@roundup.psfhosted.org>
In-reply-to
Content
I've experienced that when a module is imported in the interpreter that module file (.py, .pyc, .pyd) cannot be deleted, renamed, rewritten, etc.   When that session is closed only then the file can be deleted, renamed, rewritten, all that stuff. Running tests in parallel means running 2 or more tests at the same time right? Therefore may be when test_compileall tries to rewrite the .pyc it results in a error because the file may be open as a module in another test that is also being ran at the same time. This should also clarify why test_compileall fails randomly and not all the time.
History
Date User Action Args
2021-04-29 13:54:09shreyanavigyansetrecipients: + shreyanavigyan, vstinner, jkloth, Guido.van.Rossum, pablogsal
2021-04-29 13:54:09shreyanavigyansetmessageid: <1619704449.15.0.546716553998.issue37387@roundup.psfhosted.org>
2021-04-29 13:54:09shreyanavigyanlinkissue37387 messages
2021-04-29 13:54:08shreyanavigyancreate