Pytest's testdir fixture may end up creating flaky tests #2751
While trying to investigate a flaky test on my code, I discovered a problem in the testdir fixture.
The problem seems to be here (Note that if the for loop ends with never setting the variable, the problem should happen):
My proposal is to change the whole code block with something like
I'll make a PR soon.
The text was updated successfully, but these errors were encountered: