Skip to content

Commit 8f3703f

Browse files
committed
Fixes for zarr-python 3.0.0
1 parent 9e6290e commit 8f3703f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

sgkit/tests/io/test_dataset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def test_save_unequal_chunks_error():
5858
# Normal zarr errors shouldn't be caught
5959
with pytest.raises(
6060
(FileExistsError, ValueError),
61-
match="(path '' contains an array|Store already exists)",
61+
match="(path '' contains an array|is not empty)",
6262
):
6363
save_dataset(ds, {".zarray": ""})
6464

sgkit/tests/test_testing.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
from sgkit.testing import simulate_genotype_call_dataset
88

99

10+
@pytest.mark.filterwarnings(
11+
"ignore::UserWarning"
12+
) # codec `vlen-utf8` not in Zarr v3 spec`
1013
def test_simulate_genotype_call_dataset__zarr(tmp_path):
1114
path = str(tmp_path / "ds.zarr")
1215
ds = simulate_genotype_call_dataset(n_variant=10, n_sample=10)

0 commit comments

Comments
 (0)