-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix ZeroDivisionError with 0 collected tests #2971
Conversation
This can easily happen with pytest-testmon.
@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:
|
@blueyed thanks that helps. I can see that |
Managed to write a test which reproduces the issue, thanks @blueyed! |
Awesome, thanks! |
This can easily happen with pytest-testmon.
Here's a quick checklist that should be present in PRs:
$issue_id.$type
for example (588.bug)removal
,feature
,bugfix
,vendor
,doc
ortrivial
bugfix
,vendor
,doc
ortrivial
fixes, targetmaster
; for removals or features targetfeatures
;