File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -463,6 +463,9 @@ def test_codec_requires_endian() -> None:
463
463
ArrayV3Metadata .from_dict (
464
464
default_metadata_dict (data_type = "int16" , codecs = bytes_codec_no_conf )
465
465
)
466
+ # no error for single-byte data types
467
+ ArrayV3Metadata .from_dict (default_metadata_dict (data_type = "int8" , codecs = bytes_codec_no_conf ))
468
+
466
469
bytes_codec_empty_conf = [{"name" : "bytes" , "configuration" : {}}]
467
470
with pytest .raises (ValueError , match = raise_msg ):
468
471
ArrayV3Metadata .from_dict (
@@ -484,8 +487,11 @@ def test_codec_requires_endian() -> None:
484
487
sharding_codec_no_endian = [
485
488
{"name" : "sharding_indexed" , "configuration" : {"chunk_shape" : (1 ,)}}
486
489
]
487
-
488
490
with pytest .raises (ValueError , match = raise_msg ):
489
491
ArrayV3Metadata .from_dict (
490
492
default_metadata_dict (data_type = "int16" , codecs = sharding_codec_no_endian )
491
493
)
494
+ # no error for single-byte data types
495
+ ArrayV3Metadata .from_dict (
496
+ default_metadata_dict (data_type = "int8" , codecs = sharding_codec_no_endian )
497
+ )
You can’t perform that action at this time.
0 commit comments