From d41e141becfc04c0e2877cddb57fc7bd49006a6e Mon Sep 17 00:00:00 2001 From: Debian Science Team Date: Thu, 9 Apr 2020 04:11:32 +0100 Subject: [PATCH] Xfail tests using non-functioning URLs Author: Rebecca N. Palmer Forwarded: no Gbp-Pq: Name xfail_tests_404.patch --- pandas/tests/io/excel/test_readers.py | 1 + pandas/tests/io/test_html.py | 1 + 2 files changed, 2 insertions(+) diff --git a/pandas/tests/io/excel/test_readers.py b/pandas/tests/io/excel/test_readers.py index a39cface..45db5ff9 100644 --- a/pandas/tests/io/excel/test_readers.py +++ b/pandas/tests/io/excel/test_readers.py @@ -499,6 +499,7 @@ class TestReaders: pd.read_excel("", engine=bad_engine) @tm.network + @pytest.mark.xfail(condition=True,reason="404 URL",strict=False) def test_read_from_http_url(self, read_ext): if read_ext == ".ods": # TODO: remove once on master pytest.skip() diff --git a/pandas/tests/io/test_html.py b/pandas/tests/io/test_html.py index 72e5c1c2..ec645f6a 100644 --- a/pandas/tests/io/test_html.py +++ b/pandas/tests/io/test_html.py @@ -132,6 +132,7 @@ class TestReadHtml: assert_framelist_equal(df1, df2) @network + @pytest.mark.xfail(condition=True,reason="404 URL",strict=False) def test_spam_url(self): url = ( "https://raw.githubusercontent.com/pandas-dev/pandas/master/" -- 2.30.2