-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Two tests didn't properly assert an exception was raised. Fixed. #21409
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
doc/source/whatsnew/v0.24.0.txt
Outdated
@@ -191,6 +191,5 @@ Other | |||
^^^^^ | |||
|
|||
- :meth: `~pandas.io.formats.style.Styler.background_gradient` now takes a ``text_color_threshold`` parameter to automatically lighten the text color based on the luminance of the background color. This improves readability with dark background colors without the need to limit the background colormap range. (:issue:`21258`) | |||
- | |||
- | |||
- fixed two test cases which asserted an exception message but failed to make sure that an exception was actually raised |
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.
not necessary for test changes
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.
Ok, reverted.
@@ -34,10 +34,9 @@ def test_buffer_overflow(self): | |||
cperr = 'Buffer overflow caught - possible malformed input file.' | |||
|
|||
for malf in (malfw, malfs, malfl): | |||
try: | |||
with pytest.raises(pd.errors.ParserError) as excinfo: |
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 u parametrize this test
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.
Parametrized in f47437e.
Codecov Report
@@ Coverage Diff @@
## master #21409 +/- ##
==========================================
- Coverage 91.89% 91.89% -0.01%
==========================================
Files 153 153
Lines 49600 49596 -4
==========================================
- Hits 45580 45576 -4
Misses 4020 4020
Continue to review full report at Codecov.
|
This reverts commit ded6a05. Whatsnew entries are not required for test changes.
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.
Nice catch!
cc @jreback
thanks @akaihola; slight change to use pytest ids, otherwise nice catch! keep em coming! |
git diff upstream/master -u -- "*.py" | flake8 --diff