Skip to content

Commit 135431e

Browse files
Skip a few more DBMStore tests
1 parent 0df98fd commit 135431e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

zarr/tests/test_hierarchy.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1427,6 +1427,7 @@ def create_store():
14271427
return store, None
14281428

14291429

1430+
@pytest.mark.skipif(is_wasm(), reason="No dbm support in WASM/Pyodide")
14301431
class TestGroupWithDBMStore(TestGroup):
14311432
@staticmethod
14321433
def create_store():

zarr/tests/test_storage.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
)
6060
from zarr.storage import FSStore, rename, listdir
6161
from zarr._storage.v3 import KVStoreV3
62-
from zarr.tests.util import CountingDict, have_fsspec, skip_test_env_var, abs_container, mktemp
62+
from zarr.tests.util import CountingDict, have_fsspec, is_wasm, skip_test_env_var, abs_container, mktemp
6363
from zarr.util import ConstantMap, json_dumps
6464

6565

@@ -1886,6 +1886,7 @@ def test_store_and_retrieve_ndarray(self):
18861886
assert np.array_equiv(y, x)
18871887

18881888

1889+
@pytest.mark.skipif(is_wasm(), reason="dbm not available in WASM/Pyodide")
18891890
class TestDBMStore(StoreTests):
18901891
def create_store(self, dimension_separator=None):
18911892
path = mktemp(suffix=".anydbm")
@@ -1901,6 +1902,7 @@ def test_context_manager(self):
19011902
assert 2 == len(store)
19021903

19031904

1905+
@pytest.mark.skipif(is_wasm(), reason="dbm not available in WASM/Pyodide")
19041906
class TestDBMStoreDumb(TestDBMStore):
19051907
def create_store(self, **kwargs):
19061908
path = mktemp(suffix=".dumbdbm")

0 commit comments

Comments
 (0)