-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
remove the pytest_namespace hook in pytest itself without removing support in general #2280
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
Closed
RonnyPfannschmidt
wants to merge
20
commits into
pytest-dev:features
from
RonnyPfannschmidt:namespaces-hook
Closed
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
618f399
remove pytest_namespace from _pytest/assertion
RonnyPfannschmidt 803123a
remove pytest_namespace from _pytest.freeze_support
RonnyPfannschmidt a4c382b
remove pytest_namespace from _pytest/debugging.py
RonnyPfannschmidt f69972d
remove pytest_namespace from recwarn and fixture decorators
RonnyPfannschmidt 5796182
remove pytest_namespace from _pytest/runner.py
RonnyPfannschmidt 69c34db
remove pytest_namespace from _pytest.mark and fix latent pytest nesti…
RonnyPfannschmidt 43a382b
remove pytest_namespace from _pytest.skipping
RonnyPfannschmidt b3990a8
add a note about the deprecation of the pytest_namespace hook
RonnyPfannschmidt 3a53c0b
_pytest.mark: fix unconfigure after bad configure, still potential bug
RonnyPfannschmidt c097a17
prepare a own pytest.collect fake module in oder to remove the nested…
RonnyPfannschmidt cb77eca
hollow out pytest_namespace in _pytest.fixtures
RonnyPfannschmidt c7d1d21
remove pytest_namespace from _pytest.main
RonnyPfannschmidt f202759
remove pytest_namespace from _pytest.python
RonnyPfannschmidt eb0ce36
remove pytest_namespace from _pytest.fixtures
RonnyPfannschmidt 3d36d57
add a changelog note for pytest_namespace
RonnyPfannschmidt aea8fb3
fix all singular internal module imports and add a test for them
RonnyPfannschmidt 7250a1a
merge from features
RonnyPfannschmidt fea9d0e
add missed file
RonnyPfannschmidt f70d522
add a comment explaining the modimport tests
RonnyPfannschmidt ffc26af
fix up oversights
RonnyPfannschmidt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 think it would be easier to just have a
collect.pymodule which imports the symbols then, no? Less magic here would be better IMHO. Some tools might be confused/fail/warn that they can't find the file forpytest.collect, for example.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.
@nicoddemus that breaks
python -m pyteston python2.6 - else i could just make it a file, move the main hack and be happyThere 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.
Just to be clear, just creating
_pytest/collect.pywhich imports those simbols, and add a linefrom _pytest import collectinpytest.pybreaks Python2.6? Just trying to clarify in case I didn't make my point across.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 misunderstood, as turning pytest into a package and putting a collect filr there
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.
Still plan to tackle this @RonnyPfannschmidt?