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

TST: GH30999 address all bare pytest.raises in pandas/tests/series and add EMPTY_STRING_PATTERN to tm #38855

Merged

Conversation

moink
Copy link
Member

@moink moink commented Dec 31, 2020

This PR is to address xref #30999 in pandas/tests/series

Three of the four errors raised within pytest.raises were for NotImplementedError with the empty string as the error message. Rather than individually making a regular expression for the empty string, I added one as a constant to pandas/_testing/__init__.py . There are two more similar cases in other modules so I wanted to put it somewhere that all the testing modules import. But if you don't like it I can revert it and instead use an individual empty string pattern in each case.

  • closes #xxxx
  • tests added / passed
  • passes black pandas
  • passes git diff upstream/master -u -- "*.py" | flake8 --diff
  • whatsnew entry

@jreback jreback added the Code Style Code style, linting, code_checks label Dec 31, 2020
@jreback jreback added this to the 1.3 milestone Dec 31, 2020
@jreback jreback merged commit 61ae774 into pandas-dev:master Dec 31, 2020
@jreback
Copy link
Contributor

jreback commented Dec 31, 2020

thanks

luckyvs1 pushed a commit to luckyvs1/pandas that referenced this pull request Jan 20, 2021
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.

2 participants