-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
TST: insert 'match' to bare pytest raises in pandas/tests/tseries/off… #36865
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
Conversation
@@ -4315,7 +4326,8 @@ def test_valid_month_attributes(kwd, month_classes): | |||
# GH#18226 | |||
cls = month_classes | |||
# check that we cannot create e.g. MonthEnd(weeks=3) | |||
with pytest.raises(TypeError): | |||
msg = f"__init__\\(\\) got an unexpected keyword argument '{kwd}'" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you make these single-slash and use "rf" prefix
nitpick, otherwise LGTM |
@@ -4338,32 +4350,34 @@ def test_valid_tick_attributes(kwd, tick_classes): | |||
# GH#18226 | |||
cls = tick_classes | |||
# check that we cannot create e.g. Hour(weeks=3) | |||
with pytest.raises(TypeError): | |||
msg = f"__init__\\(\\) got an unexpected keyword argument '{kwd}'" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
Hi can you add this label |
hmm can you merge master and ping on green. |
I did git reset with upstream/master and than ran pytest pandas/tests/tseries/offsets/test_offsets.py -s. And it showed lots of Exceptions raised (293 failed) should i ignore them for now or need to fix them too along with match in pytest.raises. |
really? you should have none |
Yes, There are and i have not even made any changes in upstream/master at that point. I am not sure whether it has something to do with my local setup or not. But if i remember correctly at start of this pull request i saw none. I will check with my local setup once again and see if i made any mistake there but i am using same docker setup. |
ok pls just merge master and ping on green |
yeah this is actually failing, so please see if you can fixup things. |
de1d17e
to
84496e6
Compare
hi @jreback |
i think master is now updated, so need to merge master and see if there is anything left to change. |
…sets/test_offsets.py
Done with rebasing and most of test cases are done only one remaining. |
thanks @krajatcl |
…sets/test_offsets.py (pandas-dev#36865) Co-authored-by: Rajat Bishnoi <[email protected]>
…sets/test_offsets.py (pandas-dev#36865) Co-authored-by: Rajat Bishnoi <[email protected]>
…sets/test_offsets.py
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff