Skip to content

Commit 984e961

Browse files
tomwhitebenjeffery
authored andcommitted
Fix memory usage tests for zarr-python v3
1 parent deb5089 commit 984e961

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

tests/test_vcz.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,10 @@ def test_not_enough_memory(self, tmp_path, icf_path, max_memory):
8686
with pytest.raises(ValueError, match="Insufficient memory"):
8787
vcf_mod.encode(icf_path, zarr_path, max_memory=max_memory)
8888

89-
@pytest.mark.parametrize("max_memory", ["315KiB", "500KiB"])
89+
# zarr-python v3 string use more memory
90+
@pytest.mark.parametrize(
91+
"max_memory", ["630KiB", "1000KiB"] if zarr_v3() else ["315KiB", "500KiB"]
92+
)
9093
def test_not_enough_memory_for_two(
9194
self, tmp_path, icf_path, zarr_path, caplog, max_memory
9295
):

0 commit comments

Comments
 (0)