Skip rather than fail tests if fsspec is too old
authorDebian Science Team <debian-science-maintainers@lists.alioth.debian.org>
Tue, 12 Jan 2021 21:06:04 +0000 (21:06 +0000)
committerRebecca N. Palmer <rebecca_palmer@zoho.com>
Tue, 12 Jan 2021 21:06:04 +0000 (21:06 +0000)
(which it currently is in Debian)

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name fsspec_version.patch

pandas/tests/io/test_fsspec.py
pandas/tests/io/test_pickle.py

index d64e2d1933aced06fa9ca4cd05e225af85c85bc9..5e6842aae2e08f3467ff19533714cb130832a8c5 100644 (file)
@@ -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
index 376091c62619b0da0156b916ed79da31591c6c99..60b190dea0ca4625e4ec543faa0c45987d0f4706 100644 (file)
@@ -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"