Skip to content

Commit 7ae9a97

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

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

tests/v2/test_core.py

+4
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@
6565
from zarr.v2.util import buffer_size
6666
from .util import abs_container, skip_test_env_var, have_fsspec, mktemp
6767

68+
from tests._shared import IS_WASM
69+
6870
# noinspection PyMethodMayBeStatic
6971

7072

@@ -1992,6 +1994,7 @@ def create_store(self):
19921994
return store
19931995

19941996

1997+
@pytest.mark.skipif(IS_WASM, reason="no dbm support in WASM")
19951998
class TestArrayWithDBMStore(TestArray):
19961999
def create_store(self):
19972000
path = mktemp(suffix=".anydbm")
@@ -2003,6 +2006,7 @@ def test_nbytes_stored(self):
20032006
pass # not implemented
20042007

20052008

2009+
@pytest.mark.skipif(IS_WASM, reason="no dbm support in WASM")
20062010
@pytest.mark.skip(reason="can't get bsddb3 to work on CI right now")
20072011
class TestArrayWithDBMStoreBerkeleyDB(TestArray):
20082012
def create_store(self):

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)