Skip to content
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 pytest internal usage of the namespace hook #2315

Merged
merged 25 commits into from
Apr 21, 2017

Conversation

RonnyPfannschmidt
Copy link
Member

@RonnyPfannschmidt RonnyPfannschmidt commented Mar 16, 2017

reopening of the prior pr #2280

  • investigate the source of the errors as they dont happen when there is at least one namspace hook

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.1%) to 92.549% when pulling 171349e on RonnyPfannschmidt:namespace-hook into 5482dfe on pytest-dev:features.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.09%) to 92.563% when pulling 9560576 on RonnyPfannschmidt:namespace-hook into 5482dfe on pytest-dev:features.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.09%) to 92.563% when pulling 909ed38 on RonnyPfannschmidt:namespace-hook into 5482dfe on pytest-dev:features.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.09%) to 92.564% when pulling 21c2dcf on RonnyPfannschmidt:namespace-hook into 5482dfe on pytest-dev:features.

@RonnyPfannschmidt RonnyPfannschmidt changed the title remove pytest internal usage of the namespace hoolk remove pytest internal usage of the namespace hook Mar 20, 2017
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.1%) to 92.562% when pulling 1affc39 on RonnyPfannschmidt:namespace-hook into de8607d on pytest-dev:features.

@RonnyPfannschmidt
Copy link
Member Author

the xdist failure is most interesting

@RonnyPfannschmidt
Copy link
Member Author

RonnyPfannschmidt commented Mar 20, 2017

#2321 could be considered a blocker, a decission is needed

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.1%) to 92.562% when pulling 434ca5c on RonnyPfannschmidt:namespace-hook into de8607d on pytest-dev:features.

@RonnyPfannschmidt
Copy link
Member Author

the xfail is probably a bad idea, for now i do not want to merge it, its no longer sane to try this for 3.1

@RonnyPfannschmidt RonnyPfannschmidt changed the title remove pytest internal usage of the namespace hook [wip] remove pytest internal usage of the namespace hook Mar 20, 2017
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.1%) to 92.478% when pulling afb1778 on RonnyPfannschmidt:namespace-hook into 2a130da on pytest-dev:features.

@RonnyPfannschmidt RonnyPfannschmidt changed the title [wip] remove pytest internal usage of the namespace hook remove pytest internal usage of the namespace hook Mar 29, 2017
@nicoddemus nicoddemus merged commit 25371dd into pytest-dev:features Apr 21, 2017
@nicoddemus
Copy link
Member

Hmm sorry, just now I saw your comment @RonnyPfannschmidt... should I revert this merge?

@RonnyPfannschmidt
Copy link
Member Author

Its fine, i dir put in a workaround that works by kerping a single hook in pytest

@RonnyPfannschmidt RonnyPfannschmidt deleted the namespace-hook branch June 11, 2017 13:46
blueyed added a commit to blueyed/pytest that referenced this pull request Feb 24, 2020
Make it a real module instead.

This was initially added in 9b58d6e
(pytest-dev#2315), when removing support
for `pytest_namespace`.

Not sure if it ever worked "properly", but currently
`import pytest.collect` and `from pytest.collect import File` do not
work (but with this patch).

This is only relevant for (backward) compatibility, but the more it
appears to make sense to move it into a lazily loaded, separate file.
blueyed added a commit to blueyed/pytest that referenced this pull request Mar 11, 2020
Make it a real module instead.

This was initially added in 9b58d6e
(pytest-dev#2315), when removing support
for `pytest_namespace`.

Not sure if it ever worked "properly", but currently
`import pytest.collect` and `from pytest.collect import File` do not
work (but with this patch).

This is only relevant for (backward) compatibility, but the more it
appears to make sense to move it into a lazily loaded, separate file.
blueyed added a commit to blueyed/pytest that referenced this pull request Mar 12, 2020
Make it a real module instead.

This was initially added in 9b58d6e
(pytest-dev#2315), when removing support
for `pytest_namespace`.

Not sure if it ever worked "properly", but currently
`import pytest.collect` and `from pytest.collect import File` do not
work (but with this patch).

This is only relevant for (backward) compatibility, but the more it
appears to make sense to move it into a lazily loaded, separate file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants