-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
python: a few cleanups #7435
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
python: a few cleanups #7435
Conversation
Just the nodeid is enough for the error messages. This removes an import cycle.
A trylast is more appropriate for this usecase. hookwrappers are more complicated and more expensive than regular hookimpls, so better avoided.
This has been asserted like this since 04e9197 (i.e. 11 years, pytest 1.0), seems safe to simply remove at this point.
I believe the intent for make item was to be truely last, for which it should use a tryfirst hookwrapper Lovely changes, going to take a closer look at the computer later |
Right, the hookwrapper would guarantee that this hookimpl would go after even another hook which uses So maybe it shouldn't be |
I'm guessing it might be because |
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.
Nice changes!
I think it's reasonable to rely on builtin plugins' registration order, but let's keep the |
Agree on both accounts. 😁 |
This PR contains a few code cleanups/improvements. Please see the commits.