8000 CI: Revive Banklist Tests by lithomas1 · Pull Request #42889 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

CI: Revive Banklist Tests #42889

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

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update test_html.py
  • Loading branch information
lithomas1 authored Sep 1, 2021
commit 077901bcd8f70d7a654e123f5ed0e3f18552de24
12 changes: 8 additions & 4 deletions pandas/tests/io/test_html.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,20 +140,24 @@ def test_banklist_url_positional_match(self):
# Passing match argument as positional should cause a FutureWarning.
with tm.assert_produces_warning(FutureWarning):
df1 = self.read_html(
url, "First Federal Bank of Florida", attrs={"class": "dataTable"}
# lxml cannot find attrs leave out for now
url, "First Federal Bank of Florida", # attrs={"class": "dataTable"}
)
with tm.assert_produces_warning(FutureWarning):
df2 = self.read_html(url, "Metcalf Bank", attrs={"class": "dataTable"})
# lxml cannot find attrs leave out for now
df2 = self.read_html(url, "Metcalf Bank",) #attrs={"class": "dataTable"})

assert_framelist_equal(df1, df2)

@tm.network
def test_banklist_url(self):
url = "http://www.fdic.gov/resources/resolutions/bank-failures/failed-bank-list/index.html" # noqa E501
df1 = self.read_html(
url, match="First Federal Bank of Florida", attrs={"class": "dataTable"}
# lxml cannot find attrs leave out for now
url, match="First Federal Bank of Florida", # attrs={"class": "dataTable"}
)
df2 = self.read_html(url, match="Metcalf Bank", attrs={"class": "dataTable"})
# lxml cannot find attrs leave out for now
df2 = self.read_html(url, match="Metcalf Bank",) #attrs={"class": "dataTable"})

assert_framelist_equal(df1, df2)

Expand Down
0