3939from zarr .core .chunk_grids import _auto_partition
4040from zarr .core .common import JSON , MemoryOrder , ZarrFormat
4141from zarr .core .dtype import get_data_type_from_native_dtype
42+ from zarr .core .dtype ._numpy import Float64
4243from zarr .core .group import AsyncGroup
4344from zarr .core .indexing import BasicIndexer , ceildiv
4445from zarr .core .sync import sync
@@ -448,7 +449,7 @@ def test_info_v2(self, chunks: tuple[int, int], shards: tuple[int, int] | None)
448449 result = arr .info
449450 expected = ArrayInfo (
450451 _zarr_format = 2 ,
451- _data_type = arr .dtype ,
452+ _data_type = arr ._async_array . _zdtype ,
452453 _shape = (8 , 8 ),
453454 _chunk_shape = chunks ,
454455 _shard_shape = None ,
@@ -465,7 +466,7 @@ def test_info_v3(self, chunks: tuple[int, int], shards: tuple[int, int] | None)
465466 result = arr .info
466467 expected = ArrayInfo (
467468 _zarr_format = 3 ,
468- _data_type = arr .dtype ,
469+ _data_type = arr ._async_array . _zdtype ,
469470 _shape = (8 , 8 ),
470471 _chunk_shape = chunks ,
471472 _shard_shape = shards ,
@@ -490,7 +491,7 @@ def test_info_complete(self, chunks: tuple[int, int], shards: tuple[int, int] |
490491 result = arr .info_complete ()
491492 expected = ArrayInfo (
492493 _zarr_format = 3 ,
493- _data_type = arr .dtype ,
494+ _data_type = arr ._async_array . _zdtype ,
494495 _shape = (8 , 8 ),
495496 _chunk_shape = chunks ,
496497 _shard_shape = shards ,
@@ -525,7 +526,7 @@ async def test_info_v2_async(
525526 result = arr .info
526527 expected = ArrayInfo (
527528 _zarr_format = 2 ,
528- _data_type = np . dtype ( "float64" ),
529+ _data_type = Float64 ( ),
529530 _shape = (8 , 8 ),
530531 _chunk_shape = (2 , 2 ),
531532 _shard_shape = None ,
@@ -550,7 +551,7 @@ async def test_info_v3_async(
550551 result = arr .info
551552 expected = ArrayInfo (
552553 _zarr_format = 3 ,
553- _data_type = arr .dtype ,
554+ _data_type = arr ._zdtype ,
554555 _shape = (8 , 8 ),
555556 _chunk_shape = chunks ,
556557 _shard_shape = shards ,
@@ -577,7 +578,7 @@ async def test_info_complete_async(
577578 result = await arr .info_complete ()
578579 expected = ArrayInfo (
579580 _zarr_format = 3 ,
580- _data_type = arr .dtype ,
581+ _data_type = arr ._zdtype ,
581582 _shape = (8 , 8 ),
582583 _chunk_shape = chunks ,
583584 _shard_shape = shards ,
0 commit comments