Skip rather than fail tests if fsspec is too old
authorDebian Science Team <debian-science-maintainers@lists.alioth.debian.org>
Fri, 28 Jan 2022 19:22:53 +0000 (19:22 +0000)
committerRebecca N. Palmer <rebecca_palmer@zoho.com>
Fri, 28 Jan 2022 19:22:53 +0000 (19:22 +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 eccfab3a312419fa3c2c88bbdc8d9d7ad23d6294..7ce2895860b8b071519ab47d730df6ed4320b131 100644 (file)
@@ -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
index c4423e6cc4ead444a7e17d6be12ed1a1aa7c9e7f..87aa74e816c54a473ee2ad5f3453180592707344 100644 (file)
@@ -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"