Skip to content

REV: Loosen lookfor's import try/except again#22356

Merged
rossbar merged 1 commit intonumpy:mainfrom
seberg:issue-22345
Oct 1, 2022
Merged

REV: Loosen lookfor's import try/except again#22356
rossbar merged 1 commit intonumpy:mainfrom
seberg:issue-22345

Conversation

@seberg
Copy link
Copy Markdown
Member

@seberg seberg commented Sep 30, 2022

Some BaseExceptions (at least the Skipped that pytest uses) need to be caught as well. It seems easiest to be practical and keep ignoring almost all exception in this particular code path.

Effectively reverts parts of gh-19393

Closes gh-22345


Doesn't seem worth sweating over the details here. I might consider deprecating the whole function...

Some BaseExceptions (at least the Skipped that pytest uses) need to
be caught as well.  It seems easiest to be practical and keep ignoring
almost all exception in this particular code path.

Effectively reverts parts of numpygh-19393

Closes numpygh-22345
@seberg seberg changed the title REV: Losen lookfor's import try/except again REV: Loosen lookfor's import try/except again Sep 30, 2022
@github-actions github-actions bot added the 34 - Reversion Reversion of previous commit or merge label Sep 30, 2022
@seberg seberg added the 09 - Backport-Candidate PRs tagged should be backported label Sep 30, 2022
Copy link
Copy Markdown
Contributor

@rossbar rossbar left a comment

Choose a reason for hiding this comment

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

👍 thanks @seberg

@rossbar rossbar merged commit b654752 into numpy:main Oct 1, 2022
charris pushed a commit to charris/numpy that referenced this pull request Oct 5, 2022
Some BaseExceptions (at least the Skipped that pytest uses) need to
be caught as well.  It seems easiest to be practical and keep ignoring
almost all exception in this particular code path.

Effectively reverts parts of numpygh-19393

Closes numpygh-22345

Co-authored-by: Sebastian Berg <sebastianb@nvidia.com>
@charris charris changed the title REV: Loosen lookfor's import try/except again REV: Loosen lookfor's import try/except again Oct 5, 2022
@charris charris removed the 09 - Backport-Candidate PRs tagged should be backported label Oct 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

34 - Reversion Reversion of previous commit or merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ENH: Except BaseException in numpy.lookfor again

3 participants