-
Notifications
You must be signed in to change notification settings - Fork 126
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
refactor: implement legacy hookwrappers in terms of a modern hook" #546
base: main
Are you sure you want to change the base?
refactor: implement legacy hookwrappers in terms of a modern hook" #546
Conversation
cc5ef1d
to
d249bd5
Compare
@nicoddemus ping - can you take a look |
failures unrelated as pytest dropped python3.8 on main |
ae3572d
to
a3c8d56
Compare
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!
Sorry for the delay, seems like I missed the notifications for this one.
src/pluggy/_callers.py
Outdated
Teardown = Generator[None, object, object] | ||
|
||
|
||
def run_legacy_hookwrapper( |
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.
We call this "old-style" in the docs, perhaps:
def run_legacy_hookwrapper( | |
def run_old_style_hookwrapper( |
Raising a StopIteration in a generator triggers a RuntimeError. If the RuntimeError of a generator has the passed in StopIteration as cause resume with that StopIteration as normal exception instead of failing with the RuntimeError.
a3c8d56
to
e4359af
Compare
9376cb5
to
903653c
Compare
@nicoddemus the coverage seems bogous |
followup to #545
moves the implementation of legacy hooks into a new style hook