-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
TST: XFAIL Travis read_html tests #30544
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
Changes from all commits
2d4dd51
2768e2c
8acd4f0
9cab2ad
574723f
804560f
7faa5ef
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -383,7 +383,15 @@ def test_thousands_macau_stats(self, datapath): | |
assert not any(s.isna().any() for _, s in df.items()) | ||
|
||
@pytest.mark.slow | ||
def test_thousands_macau_index_col(self, datapath): | ||
def test_thousands_macau_index_col(self, datapath, request): | ||
# https://github.com/pandas-dev/pandas/issues/29622 | ||
# This tests fails for bs4 >= 4.8.0 - so handle xfail accordingly | ||
if self.read_html.keywords.get("flavor") == "bs4" and td.safe_import( | ||
"bs4", "4.8.0" | ||
): | ||
reason = "fails for bs4 version >= 4.8.0" | ||
request.node.add_marker(pytest.mark.xfail(reason=reason)) | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. did you change this from the decorator in response to my comment? if so, thats not what i meant. the decorator is preferred, but without the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah just want to xfail one particular parameterization - Updated now - think its easiest to do this in the function itself for this case - unless you know a more elegant way? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just seen I can potentially go for the same approach as you did here https://github.com/pandas-dev/pandas/pull/30521/files? Will update unless you think otherwise? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. if the test doesnt use the class fixture(s), could it just be moved out of the class? If not then the approach in 30521 would be my preference, yes. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Some class fixtures are used so easier to keep where is. Updated - thanks! |
||
all_non_nan_table_index = -2 | ||
macau_data = datapath("io", "data", "html", "macau.html") | ||
dfs = self.read_html(macau_data, index_col=0, header=0) | ||
|
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.
This should be single =