From: Debian Science Team Date: Sun, 13 Nov 2022 10:36:51 +0000 (+0000) Subject: Stop using now-dead URL in tests/examples X-Git-Tag: archive/raspbian/1.5.3+dfsg-2+rpi1~1^2^2^2~7 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=c0788b27ff6a1c24121e5f24668d68bd6a5c16bd;p=pandas.git 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 --- 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"} )