-
Notifications
You must be signed in to change notification settings - Fork 125
refactor: implement legacy hookwrappers in terms of a modern hook" #546
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
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( |
9376cb5
to
903653c
Compare
@nicoddemus the coverage seems bogous |
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.
903653c
to
25af101
Compare
a4e03dc
to
d0ab361
Compare
16114aa
to
d443764
Compare
@nicoddemus i took a rather brutal approach to coverage - please have another look |
@nicoddemus gentle ping |
followup to #545
moves the implementation of legacy hooks into a new style hook