-
Notifications
You must be signed in to change notification settings - Fork 124
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
Document self arg and exception handling #142
Conversation
Explain how hook calls fail when a hookimpl raises. Resolves pytest-dev#123
docs/index.rst
Outdated
class Plugin2(object): | ||
@hookimpl | ||
def myhook(self, args): | ||
raise RunTimeError |
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.
Nitpick: RuntimeError (the t is lowercase)
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, fixed!
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.
Shoot.. nice catch!
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.
LGTM, great work! 👍
docs/index.rst
Outdated
class Plugin2(object): | ||
@hookimpl | ||
def myhook(self, args): | ||
raise RunTimeError |
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, fixed!
CI is stalled? |
Probably just busy, it happens on occasion. |
Resolves #128 and switches our
pypi
links to warehouse.Tossed in docs for #123 as well.