Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
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.