We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49e67c7 commit 807470fCopy full SHA for 807470f
tests/test_properties.py
@@ -287,7 +287,9 @@ def test_array_metadata_meets_spec(meta: ArrayV2Metadata | ArrayV3Metadata) -> N
287
# version-agnostic validations
288
if meta.dtype.kind == "f":
289
assert serialized_float_is_valid(asdict_dict["fill_value"])
290
- if meta.dtype.kind == "c":
+ elif meta.dtype.kind == "c":
291
# fill_value should be a two-element array [real, imag].
292
assert serialized_float_is_valid(asdict_dict["fill_value"].real)
293
assert serialized_float_is_valid(asdict_dict["fill_value"].imag)
294
+ elif meta.dtype.kind == "M" and np.isnat(meta.fill_value):
295
+ assert asdict_dict["fill_value"] == "NaT"
0 commit comments