Skip to content

Commit

Permalink
Fix test error message
Browse files Browse the repository at this point in the history
  • Loading branch information
abarciauskas-bgse committed Nov 25, 2024
1 parent f5976d1 commit f903291
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion virtualizarr/tests/test_writers/test_icechunk.py
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ def test_append_dim_not_in_dims_raises_error(
)
with pytest.raises(
ValueError,
match="append_dim='z' does not match any existing dataset dimensions",
match="append_dim z does not match any existing dataset dimensions",
):
dataset_to_icechunk(vds, icechunk_filestore_append, append_dim="z")

Expand Down
2 changes: 1 addition & 1 deletion virtualizarr/writers/icechunk.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def dataset_to_icechunk(
)
if append_dim not in ds.dims:
raise ValueError(
f"append_dim {append_dim} not found in dataset dimensions {ds.dims}"
f"append_dim {append_dim} does not match any existing dataset dimensions"
)
root_group = Group.open(store=store, zarr_format=3)
else:
Expand Down

0 comments on commit f903291

Please sign in to comment.