Skip to content

Conversation

@moink
Copy link
Contributor

@moink moink commented Jan 5, 2021

With #38920 I eliminated all instances of pytest.raise without match=msg in pandas/tests/computation and pandas/tests/io. #38799 was happening around the same time and missed that they were fixed. So this closes the loop and now only pandas/tests/extension needs to be excluded from the linting check.

I don't think the bare pytest.raises in pandas/tests/extensions will be removed. They are in a pretty complex inheritance hierarchy and reused for many different types of errors and error messages. So I propose that this PR closes #30999.

Copy link
Member

@MarcoGorelli MarcoGorelli left a comment

Choose a reason for hiding this comment

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

Looks good to me - we good to let this close the epic #30999?

@MarcoGorelli MarcoGorelli added the Code Style Code style, linting, code_checks label Jan 5, 2021
@jorisvandenbossche jorisvandenbossche changed the title TST: GH30999 update pre-commit config to only exclude extension from bare pytest.raises check TST: update pre-commit config to only exclude extension from bare pytest.raises check Jan 5, 2021
@jorisvandenbossche jorisvandenbossche added this to the 1.3 milestone Jan 5, 2021
@jorisvandenbossche jorisvandenbossche merged commit 0a4cc39 into pandas-dev:master Jan 5, 2021
@jorisvandenbossche
Copy link
Member

Thanks!

@moink moink deleted the update_commit_hooks_for_closing_30999 branch January 5, 2021 19:10
luckyvs1 pushed a commit to luckyvs1/pandas that referenced this pull request Jan 20, 2021
…est.raises check (pandas-dev#38973)

Co-authored-by: Marco Gorelli <marcogorelli@protonmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Code Style Code style, linting, code_checks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Good first issue] TST: Disallow bare pytest.raises

3 participants