Skip to content

Commit 0dbe70a

Browse files
martindurantd-v-b
andauthored
Update tests/test_v2.py
Co-authored-by: Davis Bennett <[email protected]>
1 parent fac9e17 commit 0dbe70a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/test_v2.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,12 @@ def test_v2_filters_codecs(filters: Any, order: Literal["C", "F"]) -> None:
163163

164164

165165
@pytest.mark.filterwarnings("ignore")
166-
def test_create_array_defaults():
167-
store = zarr.storage.MemoryStore()
166+
@pytest.mark.parametrize('store', ['memory'], indirect=True)
167+
def test_create_array_defaults(store: Store):
168+
"""
169+
Test that passing compressor=None results in no compressor. Also test that the default value of the compressor
170+
parameter does produce a compressor.
171+
"""
168172
g = zarr.open(store, mode="w", zarr_format=2)
169173
arr = g.create_array("one", dtype="i8", shape=(1,), chunks=(1,), compressor=None)
170174
assert arr._async_array.compressor is None

0 commit comments

Comments
 (0)