8000 Fix more user warning tests · zarr-developers/zarr-python@37e6e1f · GitHub
[go: up one dir, main page]

Skip to content

Commit 37e6e1f

Browse files
committed
Fix more user warning tests
1 parent 6ff474e commit 37e6e1f

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

zarr/tests/test_core.py

Copy file name to clipboard
Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2039,10 +2039,9 @@ def test_nbytes_stored(self):
20392039

20402040

20412041
class TestArrayWithDBMStoreBerkeleyDB(TestArray):
2042-
20432042
def __init__(self):
20442043
# Skip warning tests as well
2045-
bsddb3 = pytest.importorskip("bsddb3")
2044+
pytest.importorskip("bsddb3")
20462045

20472046
def create_store(self):
20482047
bsddb3 = pytest.importorskip("bsddb3")
@@ -2056,6 +2055,10 @@ def test_nbytes_stored(self):
20562055

20572056

20582057
class TestArrayWithLMDBStore(TestArray):
2058+
def __init__(self):
2059+
# Skip warning tests as well
2060+
pytest.importorskip("lmdb")
2061+
20592062
def create_store(self):
20602063
pytest.importorskip("lmdb")
20612064
path = mktemp(suffix=".lmdb")
@@ -2071,6 +2074,10 @@ def test_nbytes_stored(self):
20712074

20722075

20732076
class TestArrayWithLMDBStoreNoBuffers(TestArray):
2077+
def __init__(self):
2078+
# Skip warning tests as well
2079+
pytest.importorskip("lmdb")
2080+
20742081
def create_store(self):
20752082
pytest.importorskip("lmdb")
20762083
path = mktemp(suffix=".lmdb")
@@ -2083,6 +2090,10 @@ def test_nbytes_stored(self):
20832090

20842091

20852092
class TestArrayWithSQLiteStore(TestArray):
2093+
def __init__(self):
2094+
# Skip warning tests as well
2095+
pytest.importorskip("sqlite3")
2096+
20862097
def create_store(self):
20872098
pytest.importorskip("sqlite3")
20882099
path = mktemp(suffix=".db")

0 commit comments

Comments
 (0)
0