-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
MAINT: Remove vestigial self.assert* #16190
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
Remove all remaining self.assert* method calls originating from unittest. Any that are left are calls to methods directly defined in the test class or a higher derived pandas test class.
After this PR, all uses of the Thus, I am inclined to leave |
is it worthwhile to add NotImplementedError to TestCase for the unittest functions (temporarily)? |
It's not public API, so I don't see why we should? The only people who will be "surprised" should be any developers on this library I would think. |
not sure what u mean this is a simple way of preventing unittest idioms from slipping back in (until TestCase is fixed) |
Well, I'm going to fix it as soon as this PR is merged, so that should be moot? 😄 |
Codecov Report
@@ Coverage Diff @@
## master #16190 +/- ##
==========================================
+ Coverage 90.86% 90.86% +<.01%
==========================================
Files 162 162
Lines 50862 50862
==========================================
+ Hits 46215 46216 +1
+ Misses 4647 4646 -1
Continue to review full report at Codecov.
|
@jreback : Everything is green and ready to merge. |
thanks! |
Remove all remaining self.assert* method calls originating from unittest. Any that are left are calls to methods directly defined in the test class or a higher derived pandas test class.
Remove all remaining
self.assert*
method calls originating fromunittest
. Any that are left are calls to methods directly defined in the test class or a higher derivedpandas
test class.Partially addresses #15990.
Once this PR is merged, it is important that we remain vigilant about requiring PR's to adhere to the
pytest
idiom until we remove our dependency onunittest.TestCase
(after which the builds will do the work when tests fail).