From: Debian Science Team Date: Mon, 21 Feb 2022 07:35:51 +0000 (+0000) Subject: Skip rather than fail tests if fsspec is too old X-Git-Tag: archive/raspbian/1.5.3+dfsg-2+rpi1~1^2^2^2^2^2^2~9 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=ca07c960a9c85f60477cb1eb0eaf819419855904;p=pandas.git Skip rather than fail tests if fsspec is too old (which it currently is in Debian) Author: Rebecca N. Palmer Forwarded: no Gbp-Pq: Name fsspec_version.patch --- diff --git a/pandas/tests/io/test_fsspec.py b/pandas/tests/io/test_fsspec.py index eccfab3a..7ce28958 100644 --- a/pandas/tests/io/test_fsspec.py +++ b/pandas/tests/io/test_fsspec.py @@ -30,7 +30,7 @@ text = str(df1.to_csv(index=False)).encode() @pytest.fixture def cleared_fs(): - fsspec = pytest.importorskip("fsspec") + fsspec = pytest.importorskip("fsspec", "0.7.4") memfs = fsspec.filesystem("memory") yield memfs diff --git a/pandas/tests/io/test_pickle.py b/pandas/tests/io/test_pickle.py index c4423e6c..87aa74e8 100644 --- a/pandas/tests/io/test_pickle.py +++ b/pandas/tests/io/test_pickle.py @@ -519,7 +519,7 @@ def test_pickle_generalurl_read(monkeypatch, mockurl): tm.assert_frame_equal(df, result) -@td.skip_if_no("fsspec") +@td.skip_if_no("fsspec", "0.7.4") def test_pickle_fsspec_roundtrip(): with tm.ensure_clean(): mockurl = "memory://afile"