From c0788b27ff6a1c24121e5f24668d68bd6a5c16bd Mon Sep 17 00:00:00 2001 From: Debian Science Team Date: Sun, 13 Nov 2022 10:36:51 +0000 Subject: [PATCH] Stop using now-dead URL in tests/examples Origin: loosely based on upstream commit 68db2d26ddb5f95de4254d61b850d3dcaf6ce717 Author: patrick "phofl", Rebecca N. Palmer Bug: https://github.com/pandas-dev/pandas/issues/38988 Bug-Debian: https://bugs.debian.org/979621 Forwarded: no Gbp-Pq: Name 979621_dead_url.patch --- pandas/tests/io/test_html.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandas/tests/io/test_html.py b/pandas/tests/io/test_html.py index 1de02679..340b8883 100644 --- a/pandas/tests/io/test_html.py +++ b/pandas/tests/io/test_html.py @@ -137,7 +137,7 @@ class TestReadHtml: @pytest.mark.xfail(reason="Html file was removed") @tm.network def test_banklist_url_positional_match(self): - url = "https://www.fdic.gov/bank/individual/failed/banklist.html" + url = "https://raw.githubusercontent.com/pandas-dev/pandas/master/pandas/tests/io/data/html/banklist.html" # Passing match argument as positional should cause a FutureWarning. with tm.assert_produces_warning(FutureWarning): df1 = self.read_html( @@ -151,7 +151,7 @@ class TestReadHtml: @pytest.mark.xfail(reason="Html file was removed") @tm.network def test_banklist_url(self): - url = "https://www.fdic.gov/bank/individual/failed/banklist.html" + url = "https://raw.githubusercontent.com/pandas-dev/pandas/master/pandas/tests/io/data/html/banklist.html" df1 = self.read_html( url, match="First Federal Bank of Florida", attrs={"id": "table"} ) -- 2.30.2