[issue37387] test_compileall fails randomly on Windows when tests are run in parallel

Tim Peters report at bugs.python.org
Thu Apr 29 13:48:05 EDT 2021


Tim Peters <tim at python.org> added the comment:

A "good" solution would be one that runs the test in such a way that it doesn't fail only on Windows ;-)

There are presumably many ways that could be accomplished, including ugly ones. For example, if test_compileall is in the collection of tests to be run, and it's a parallel run, run it first by itself, before starting anything else in parallel.

No, I'm not suggesting we do that. Just trying to get across that there are _always_ ways to worm around the bug du jour.

I don't know enough about when and why CPython decides to replace .pyc files now to make another suggestion worth anyone else's time to evaluate. Victor already has something else in mind, though.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37387>
_______________________________________


More information about the Python-bugs-list mailing list