Skip to content

Commit

Permalink
Fixes for zarr-python 3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tomwhite committed Jan 14, 2025
1 parent cb34376 commit 2c22815
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion sgkit/tests/io/test_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def test_save_unequal_chunks_error():
# Normal zarr errors shouldn't be caught
with pytest.raises(
(FileExistsError, ValueError),
match="(path '' contains an array|Store already exists)",
match="(path '' contains an array|is not empty)",
):
save_dataset(ds, {".zarray": ""})

Expand Down
3 changes: 3 additions & 0 deletions sgkit/tests/test_testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
from sgkit.testing import simulate_genotype_call_dataset


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

0 comments on commit 2c22815

Please sign in to comment.