@@ -118,7 +118,7 @@ def source_array_v2(tmp_path: Path, request: pytest.FixtureRequest) -> ArrayV2:
118118 chunk_key_encoding = V2ChunkKeyEncoding (separator = "/" )
119119 dtype : ZDTypeLike
120120 if array_params .values .dtype == np .dtype ("|O" ) and array_params .serializer == "vlen-utf8" :
121- dtype = VariableLengthUTF8 () # type: ignore[assignment]
121+ dtype = VariableLengthUTF8 ()
122122 filters = array_params .filters + (VLenUTF8 (),)
123123 elif array_params .values .dtype == np .dtype ("|O" ) and array_params .serializer == "vlen-bytes" :
124124 dtype = VariableLengthBytes ()
@@ -156,7 +156,7 @@ def source_array_v3(tmp_path: Path, request: pytest.FixtureRequest) -> ArrayV3:
156156 dtype : ZDTypeLike
157157 serializer : Literal ["auto" ] | zarr .abc .codec .Codec
158158 if array_params .values .dtype == np .dtype ("|O" ) and array_params .serializer == "vlen-utf8" :
159- dtype = VariableLengthUTF8 () # type: ignore[assignment]
159+ dtype = VariableLengthUTF8 ()
160160 serializer = zarrcodecs .VLenUTF8Codec ()
161161 elif array_params .values .dtype == np .dtype ("|O" ) and array_params .serializer == "vlen-bytes" :
162162 dtype = VariableLengthBytes ()
@@ -211,7 +211,7 @@ def test_roundtrip_v2(source_array_v2: ArrayV2, tmp_path: Path, script_path: Pat
211211 capture_output = True ,
212212 text = True ,
213213 )
214- assert copy_op .returncode == 0
214+ assert copy_op .returncode == 0 , "stdout " + copy_op . stdout + " \n stderr" + copy_op . stderr
215215 out_array = zarr .open_array (store = out_path , mode = "r" , zarr_format = 2 )
216216 assert source_array_v2 .metadata .to_dict () == out_array .metadata .to_dict ()
217217 assert np .array_equal (source_array_v2 [:], out_array [:])
0 commit comments