@@ -134,28 +134,38 @@ def test_to_html_compat(self):
134
134
res = self .read_html (out , attrs = {"class" : "dataframe" }, index_col = 0 )[0 ]
135
135
tm .assert_frame_equal (res , df )
136
136
137
- @pytest .mark .xfail (reason = "Html file was removed" )
138
137
@tm .network
139
138
def test_banklist_url_positional_match (self ):
140
- url = "https ://www.fdic.gov/bank/individual/ failed/banklist .html"
139
+ url = "http ://www.fdic.gov/resources/resolutions/bank-failures/ failed-bank-list/index .html" # noqa E501
141
140
# Passing match argument as positional should cause a FutureWarning.
142
141
with tm .assert_produces_warning (FutureWarning ):
143
142
df1 = self .read_html (
144
- url , "First Federal Bank of Florida" , attrs = {"id" : "table" }
143
+ # lxml cannot find attrs leave out for now
144
+ url ,
145
+ "First Federal Bank of Florida" , # attrs={"class": "dataTable"}
145
146
)
146
147
with tm .assert_produces_warning (FutureWarning ):
147
- df2 = self .read_html (url , "Metcalf Bank" , attrs = {"id" : "table" })
148
+ # lxml cannot find attrs leave out for now
149
+ df2 = self .read_html (
150
+ url ,
151
+ "Metcalf Bank" ,
152
+ ) # attrs={"class": "dataTable"})
148
153
149
154
assert_framelist_equal (df1 , df2 )
150
155
151
- @pytest .mark .xfail (reason = "Html file was removed" )
152
156
@tm .network
153
157
def test_banklist_url (self ):
154
- url = "https ://www.fdic.gov/bank/individual/ failed/banklist .html"
158
+ url = "http ://www.fdic.gov/resources/resolutions/bank-failures/ failed-bank-list/index .html" # noqa E501
155
159
df1 = self .read_html (
156
- url , match = "First Federal Bank of Florida" , attrs = {"id" : "table" }
160
+ # lxml cannot find attrs leave out for now
161
+ url ,
162
+ match = "First Federal Bank of Florida" , # attrs={"class": "dataTable"}
157
163
)
158
- df2 = self .read_html (url , match = "Metcalf Bank" , attrs = {"id" : "table" })
164
+ # lxml cannot find attrs leave out for now
165
+ df2 = self .read_html (
166
+ url ,
167
+ match = "Metcalf Bank" ,
168
+ ) # attrs={"class": "dataTable"})
159
169
160
170
assert_framelist_equal (df1 , df2 )
161
171
0 commit comments