Skip to content

Commit 14db70e

Browse files
committed
skip FSStore tests unless fsspec is available
1 parent bea6b10 commit 14db70e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎zarr/tests/test_hierarchy.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
array_meta_key, atexit_rmglob, atexit_rmtree,
2828
group_meta_key, init_array, init_group)
2929
from zarr.util import InfoReporter
30-
from zarr.tests.util import skip_test_env_var
30+
from zarr.tests.util import skip_test_env_var, have_fsspec
3131

3232

3333
# noinspection PyStatementEffect
@@ -971,6 +971,7 @@ def create_store():
971971
return store, None
972972

973973

974+
@pytest.mark.skipif(have_fsspec is False, reason="needs fsspec")
974975
class TestGroupWithFSStore(TestGroup):
975976

976977
@staticmethod
@@ -992,6 +993,7 @@ def test_round_trip_nd(self):
992993
np.testing.assert_array_equal(h[name][:], data)
993994

994995

996+
@pytest.mark.skipif(have_fsspec is False, reason="needs fsspec")
995997
class TestGroupWithNestedFSStore(TestGroupWithFSStore):
996998

997999
@staticmethod

0 commit comments

Comments
 (0)