Skip to content

Commit

Permalink
fix type assertions in test
Browse files Browse the repository at this point in the history
  • Loading branch information
rabernat committed Oct 7, 2024
1 parent 0406ea1 commit 8e61a18
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/v3/test_codecs/test_vlen.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,12 @@ async def test_vlen_bytes(store: Store) -> None:

a[:, :] = data
assert np.array_equal(data, a[:, :])
# assert a.metadata.data_type == DataType.string
# assert a.dtype == expected_zarr_string_dtype
assert a.metadata.data_type == DataType.bytes
assert a.dtype == "O"

# test round trip
b = Array.open(sp)
assert isinstance(b.metadata, ArrayV3Metadata) # needed for mypy
assert np.array_equal(data, b[:, :])
# assert b.metadata.data_type == DataType.string
# assert a.dtype == expected_zarr_string_dtype
assert b.metadata.data_type == DataType.bytes
assert a.dtype == "O"

0 comments on commit 8e61a18

Please sign in to comment.