Skip to content

Commit 7287d76

Browse files
committed
dont run fsstore test if fsspec not installed
1 parent 87b2d0d commit 7287d76

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

zarr/tests/test_core.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@
2020
from zarr.n5 import N5Store, n5_keywords
2121
from zarr.storage import (ABSStore, DBMStore, DirectoryStore, LMDBStore,
2222
LRUStoreCache, NestedDirectoryStore, SQLiteStore,
23-
atexit_rmglob, atexit_rmtree, init_array, init_group,
24-
FSStore)
23+
FSStore, atexit_rmglob, atexit_rmtree, init_array,
24+
init_group
25+
)
2526
from zarr.util import buffer_size
26-
from zarr.tests.util import skip_test_env_var
27+
from zarr.tests.util import skip_test_env_var, have_fsspec
2728

2829

2930
# noinspection PyMethodMayBeStatic
@@ -2369,6 +2370,7 @@ def test_store_has_bytes_values(self):
23692370
pass
23702371

23712372

2373+
@pytest.mark.skipif(have_fsspec is False, reason="needs fsspec")
23722374
class TestArrayWithFSStore(TestArray):
23732375

23742376
@staticmethod

0 commit comments

Comments
 (0)