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

BUG: Fix module level import requires #228

Merged
merged 3 commits into from
Oct 6, 2023

Conversation

seberg
Copy link
Contributor

@seberg seberg commented Oct 6, 2023

Since the logic was written in a negate way compared to the normal skipping, the module level skip didn't take into account the special "*" and "." patterns.

gh-109 probably misdiagnosed the module actually missing only on the run the had pytest-xdist: the test does not seem to ever pass either way.

Closes gh-109

seberg added 2 commits October 6, 2023 16:28
Since the logic was written in a negate way compared to the normal
skipping, the module level skip didn't take into account the special
"*" and "." patterns.

scientific-pythongh-109 probably misdiagnosed the module actually missing only on the
run the had pytest-xdist: the test does not seem to ever pass either
way.

Closes scientific-pythongh-109
While `pass` if statements are not always great, I think this is a bit closer
to what it was and probably easier to grock when compared to the code above it.
@bsipocz bsipocz added the bug label Oct 6, 2023
@bsipocz bsipocz added this to the 1.1.0 milestone Oct 6, 2023
Copy link
Member

@bsipocz bsipocz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing this long-standing bug.

This would ideally need a changelog entry, but I'll just go ahead and push that to the PR and merge.

@bsipocz bsipocz merged commit de24acb into scientific-python:main Oct 6, 2023
@seberg seberg deleted the fix-import-require branch October 6, 2023 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

__doctest_requires__ does not work with pytest-xdist?
2 participants