From: Debian Science Team Date: Mon, 7 Dec 2020 23:06:28 +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^2^2^2^2^2~6 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=e5114ed436a8df3fc6c4d0bbcaef41b435fc1e01;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 d64e2d19..5e6842aa 100644 --- a/pandas/tests/io/test_fsspec.py +++ b/pandas/tests/io/test_fsspec.py @@ -20,7 +20,7 @@ text = df1.to_csv(index=False).encode() # type: ignore @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 376091c6..60b190de 100644 --- a/pandas/tests/io/test_pickle.py +++ b/pandas/tests/io/test_pickle.py @@ -455,7 +455,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"