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
Fix ZeroDivisionError with 0 collected tests #2971
This can easily happen with pytest-testmon.
Here's a quick checklist that should be present in PRs:
@blueyed thanks for the PR!
Can you add a CHANGELOG entry and a test case to avoid a future regression? I tried adding one myself:
def test_zero_tests_collected(self, testdir): output = testdir.runpytest() output.stdout.re_match_lines([ r'=* 0 tests collected =*', ])
But this does not fail with a
Might take a while before coming back to it.
Here is the stacktrace for reference: