-
-
Notifications
You must be signed in to change notification settings - Fork 18k
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
CI: Check in the CI that assert_raises_regex is not being used #23627
CI: Check in the CI that assert_raises_regex is not being used #23627
Conversation
@datapythonista : That's not true. |
We still need the check, in case it’s used in a test that’s skipped on the numpydev job.
…________________________________
From: gfyoung <notifications@github.com>
Sent: Sunday, November 11, 2018 4:32 PM
To: pandas-dev/pandas
Cc: Tom Augspurger; Comment
Subject: Re: [pandas-dev/pandas] CI: Check in the CI that assert_raises_regex is not being used (#23627)
As assert_raises_regexis not deprecated, add to the CI a check to fail if a PR uses it.
@datapythonista<https://github.com/datapythonista> : That's not correct. assert_raises_regex is deprecated<https://github.com/pandas-dev/pandas/blob/58a59bd606911f11a4f679df18a00cfc25536c30/pandas/util/testing.py#L2576>. That's why I was saying that the need to check for usage was unnecessary.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#23627 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ABQHIs6ADp5IiNxjJ4PNNWe1p0M4PuUzks5uuKWIgaJpZM4YYqgS>.
|
I meant I don't understand what you mean, sorry. I think after all your work replacing If you agree with that, this PR what it does it just to fail the CI if anyone uses it in a PR. Doesn't this make sense? |
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.
We still need the check, in case it’s used in a test that’s skipped on the numpydev job.
@TomAugspurger : Ah, that's true. Okay, LGTM then.
lgtm merge on green |
you need
|
I just did |
@datapythonista that's ok as well. I kind of slightly prefer the includes but prob doesn't make much difference here. |
ping on green. |
Codecov Report
@@ Coverage Diff @@
## master #23627 +/- ##
==========================================
+ Coverage 92.23% 92.23% +<.01%
==========================================
Files 161 161
Lines 51288 51322 +34
==========================================
+ Hits 47304 47337 +33
- Misses 3984 3985 +1
Continue to review full report at Codecov.
|
* upstream/master: BUG: Don't over-optimize memory with jagged CSV (pandas-dev#23527) DEPR: Deprecate usecols as int in read_excel (pandas-dev#23635) More helpful Stata string length error. (pandas-dev#23629) BUG: astype fill_value for SparseArray.astype (pandas-dev#23547) CLN: datetimelike arrays: isort, small reorg (pandas-dev#23587) CI: Check in the CI that assert_raises_regex is not being used (pandas-dev#23627) CLN:Remove unused **kwargs from user facing methods (pandas-dev#23249) DOC: Enhancing pivot / reshape docs (pandas-dev#21038) TST: Fix xfailing DataFrame arithmetic tests by transposing (pandas-dev#23620)
…fixed * upstream/master: DOC: avoid SparseArray.take error (pandas-dev#23637) CLN: remove incorrect usages of com.AbstractMethodError (pandas-dev#23625) DOC: Adding validation of the section order in docstrings (pandas-dev#23607) BUG: Don't over-optimize memory with jagged CSV (pandas-dev#23527) DEPR: Deprecate usecols as int in read_excel (pandas-dev#23635) More helpful Stata string length error. (pandas-dev#23629) BUG: astype fill_value for SparseArray.astype (pandas-dev#23547) CLN: datetimelike arrays: isort, small reorg (pandas-dev#23587) CI: Check in the CI that assert_raises_regex is not being used (pandas-dev#23627) CLN:Remove unused **kwargs from user facing methods (pandas-dev#23249)
Follow up of #23592.
As
assert_raises_regex
is now deprecated, add to the CI a check to fail if a PR uses it.