-
Notifications
You must be signed in to change notification settings - Fork 127
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
Handle first result with None results #69
Conversation
at first glance i wonder if that test should trigger the behaviour, i was under the impression lack of plug-ins should trigger it |
That test definitely gets the exact same error so the fix should handle both cases. |
indeed https://github.com/pytest-dev/pluggy/blob/master/pluggy/callers.py#L92 so firstresult shortcuts, and there should always be zero or one results |
@RonnyPfannschmidt added that second test as well. |
haha wow totally broke it.. |
When calling a firstresult hook, if no implementation returns a non-None value a bug is exposed in the new `_MultiCall` which assumes there will be a least one result.
8fd6900
to
e8fe1be
Compare
Only return the first result when at least one result has been returned by underlying hook implementations. Fixes pytest-dev#68
e8fe1be
to
f1a2270
Compare
there finally.. @nicoddemus just waiting on your stamp of approval 😄 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lg2m, fixes tox
with missing interpreters
Fixes pytest-dev#68 and get's pytest-dev#69 into the wild stat!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @tgoodlet for working on this so quickly!
Addresses #68...
If you guys are happy with this I'll push up a patch release
0.5.1
...