-
-
Notifications
You must be signed in to change notification settings - Fork 18.7k
BUG: Fix error message for invalid HTML flavor #23550
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
BUG: Fix error message for invalid HTML flavor #23550
Conversation
The flavors were not rendering properly in the string formatting. Closes pandas-devgh-23549. Follow-up to pandas-devgh-17660.
Hello @gfyoung! Thanks for submitting the PR.
|
msg = r"\{" + flavor + r"\} is not a valid set of flavors" | ||
|
||
with tm.assert_raises_regex(ValueError, msg): | ||
read_html(url, "google", flavor=flavor) |
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 had a test for invalid flavors, but we were not checking the error message 😮
Should definitely discourage use of pytest.raises
(with no match
argument) unless there is a good reason for our not wanting to check the error message.
Codecov Report
@@ Coverage Diff @@
## master #23550 +/- ##
=======================================
Coverage 92.24% 92.24%
=======================================
Files 161 161
Lines 51224 51224
=======================================
Hits 47254 47254
Misses 3970 3970
Continue to review full report at Codecov.
|
Thanks. |
The flavors were not rendering properly in the string formatting. Closes pandas-devgh-23549. Follow-up to pandas-devgh-17660.
The flavors were not rendering properly in the string formatting. Closes pandas-devgh-23549. Follow-up to pandas-devgh-17660.
The flavors were not rendering properly in the string formatting. Closes pandas-devgh-23549. Follow-up to pandas-devgh-17660.
The flavors were not rendering properly in the string formatting. Closes pandas-devgh-23549. Follow-up to pandas-devgh-17660.
The flavors were not rendering properly in the string formatting.
Closes #23549.
Follow-up to #17660.