Skip to content

Commit b52b6c4

Browse files
Skip tests that require dbm
1 parent 621077a commit b52b6c4

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

tests/v2/test_hierarchy.py

+4
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@
4545
from zarr.v2.util import InfoReporter
4646
from .util import skip_test_env_var, have_fsspec, abs_container, mktemp
4747

48+
from tests._shared import IS_WASM
49+
4850
# noinspection PyStatementEffect
4951

5052

@@ -1122,6 +1124,7 @@ def test_move(self):
11221124
pass
11231125

11241126

1127+
@pytest.mark.skipif(IS_WASM, reason="dbm not available in WASM")
11251128
class TestGroupWithDBMStore(TestGroup):
11261129
@staticmethod
11271130
def create_store():
@@ -1131,6 +1134,7 @@ def create_store():
11311134
return store, None
11321135

11331136

1137+
@pytest.mark.skipif(IS_WASM, reason="dbm not available in WASM")
11341138
class TestGroupWithDBMStoreBerkeleyDB(TestGroup):
11351139
@staticmethod
11361140
def create_store():

tests/v2/test_storage.py

+3
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
from .util import CountingDict, have_fsspec, skip_test_env_var, abs_container, mktemp
6060
from zarr.v2.util import ConstantMap, json_dumps
6161

62+
from tests._shared import IS_WASM
6263

6364
@contextmanager
6465
def does_not_raise():
@@ -1765,6 +1766,7 @@ def test_store_and_retrieve_ndarray(self):
17651766
assert np.array_equiv(y, x)
17661767

17671768

1769+
@pytest.mark.skipif(IS_WASM, reason="dbm not available in WASM")
17681770
class TestDBMStore(StoreTests):
17691771
def create_store(self, dimension_separator=None):
17701772
path = mktemp(suffix=".anydbm")
@@ -1780,6 +1782,7 @@ def test_context_manager(self):
17801782
assert 2 == len(store)
17811783

17821784

1785+
@pytest.mark.skipif(IS_WASM, reason="dbm not available in WASM")
17831786
class TestDBMStoreDumb(TestDBMStore):
17841787
def create_store(self, **kwargs):
17851788
path = mktemp(suffix=".dumbdbm")

0 commit comments

Comments
 (0)