-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
remove preinit, its no longer needed #2636
remove preinit, its no longer needed #2636
Conversation
f6f422c
to
34909f2
Compare
34909f2
to
c68a89b
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.
Nice work!
IMHO we need a small adjustment to the changelog and this is good to go!
changelog/2236.removal
Outdated
@@ -0,0 +1 @@ | |||
- remove plugin preinit, we no longer need to do that because the namespace is initialized in the module now |
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.
I suggest to make this more user oriented, the way it is now I doubt the general user will understand it. How about:
Remove internal ``_preloadplugins()`` function. This removal is part of the ``pytest_namespace()`` hook deprecation.
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.
done
by removing preinit we remove loading the initial plugin list
this is no longer needed, since we no longer use pytest-namespace for pytest itself
the followup for this one is to deprecate the pytest-namespace hook alltogether