[issue37387] test_compileall fails randomly on Windows when tests are run in parallel
Shreyan Avigyan
report at bugs.python.org
Thu Apr 29 09:54:09 EDT 2021
Shreyan Avigyan <shreyan.avigyan at gmail.com> added the comment:
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.
----------
nosy: +shreyanavigyan
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37387>
_______________________________________
More information about the Python-bugs-list
mailing list