@@ -134,9 +134,15 @@ def test_to_html_compat(self):
134134 tm .assert_frame_equal (res , df )
135135
136136 @pytest .mark .network
137- @tm .network
137+ @tm .network (
138+ url = (
139+ "https://www.fdic.gov/resources/resolutions/"
140+ "bank-failures/failed-bank-list/index.html"
141+ ),
142+ check_before_test = True ,
143+ )
138144 def test_banklist_url_positional_match (self ):
139- url = "http ://www.fdic.gov/resources/resolutions/bank-failures/failed-bank-list/index.html" # noqa E501
145+ url = "https ://www.fdic.gov/resources/resolutions/bank-failures/failed-bank-list/index.html" # noqa E501
140146 # Passing match argument as positional should cause a FutureWarning.
141147 with tm .assert_produces_warning (FutureWarning ):
142148 df1 = self .read_html (
@@ -154,9 +160,15 @@ def test_banklist_url_positional_match(self):
154160 assert_framelist_equal (df1 , df2 )
155161
156162 @pytest .mark .network
157- @tm .network
163+ @tm .network (
164+ url = (
165+ "https://www.fdic.gov/resources/resolutions/"
166+ "bank-failures/failed-bank-list/index.html"
167+ ),
168+ check_before_test = True ,
169+ )
158170 def test_banklist_url (self ):
159- url = "http ://www.fdic.gov/resources/resolutions/bank-failures/failed-bank-list/index.html" # noqa E501
171+ url = "https ://www.fdic.gov/resources/resolutions/bank-failures/failed-bank-list/index.html" # noqa E501
160172 df1 = self .read_html (
161173 # lxml cannot find attrs leave out for now
162174 url ,
@@ -171,7 +183,13 @@ def test_banklist_url(self):
171183 assert_framelist_equal (df1 , df2 )
172184
173185 @pytest .mark .network
174- @tm .network
186+ @tm .network (
187+ url = (
188+ "https://raw.githubusercontent.com/pandas-dev/pandas/main/"
189+ "pandas/tests/io/data/html/spam.html"
190+ ),
191+ check_before_test = True ,
192+ )
175193 def test_spam_url (self ):
176194 url = (
177195 "https://raw.githubusercontent.com/pandas-dev/pandas/main/"
@@ -409,14 +427,14 @@ def test_negative_skiprows(self):
409427 self .read_html (self .spam_data , match = "Water" , skiprows = - 1 )
410428
411429 @pytest .mark .network
412- @tm .network
430+ @tm .network ( url = "https://docs.python.org/2/" , check_before_test = True )
413431 def test_multiple_matches (self ):
414432 url = "https://docs.python.org/2/"
415433 dfs = self .read_html (url , match = "Python" )
416434 assert len (dfs ) > 1
417435
418436 @pytest .mark .network
419- @tm .network
437+ @tm .network ( url = "https://docs.python.org/2/" , check_before_test = True )
420438 def test_python_docs_table (self ):
421439 url = "https://docs.python.org/2/"
422440 dfs = self .read_html (url , match = "Python" )
0 commit comments