-
Notifications
You must be signed in to change notification settings - Fork 27
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
pytest-repeat crashes on doctest #41
Comments
Hmm never mind it's a bit more complicated than that. Looks like Let me know if you have any ideas, but if it's too complicated to be worth implementing I understand. In any case fixing the
Maybe we could even check if it's a doctest and give an even more specific error. |
Related: pytest-dev/pytest#5070 (I guess) |
on master it just fails silently, and doctests don't get run multiple times. |
Seems like this makes sense either way, because |
we should document that this doesn't work |
on python 3.6.8, pytest 4.5.0, pytest-repeat 0.8.0
py.test --doctest-modules --count=2
When the test is a doctest (
request.node
is aDoctestItem
),request.cls
isNone
.I assume this can be fixed with an extra
is not None
in the condition on line 42:pytest-repeat/pytest_repeat.py
Line 42 in c74dd59
Happy to open a PR
The text was updated successfully, but these errors were encountered: