- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 19.2k
 
CI: Check in the CI that assert_raises_regex is not being used #23627
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
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 <[email protected]>
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. 
  | 
    
Follow up of #23592.
As
assert_raises_regexis now deprecated, add to the CI a check to fail if a PR uses it.