From 188f59ee81787d713bf1784248d48ca77d24ba5d Mon Sep 17 00:00:00 2001 From: Illviljan <14371165+Illviljan@users.noreply.github.com> Date: Fri, 27 Sep 2024 20:23:08 +0200 Subject: [PATCH] lets try a different dtype --- xarray/tests/test_namedarray.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xarray/tests/test_namedarray.py b/xarray/tests/test_namedarray.py index 9bd6b342170..39ca08fa06c 100644 --- a/xarray/tests/test_namedarray.py +++ b/xarray/tests/test_namedarray.py @@ -594,12 +594,12 @@ def test_warn_on_repeated_dimension_names(self) -> None: def test_repr() -> None: - x: NamedArray[Any, np.dtype[np.int64]] - x = NamedArray(("x",), np.array([1, 2, 3], dtype=np.int64)) + x: NamedArray[Any, np.dtype[np.uint64]] + x = NamedArray(("x",), np.array([0], dtype=np.uint64)) # Reprs should not crash: r = x.__repr__() x._repr_html_() # Basic comparison: - assert r == " Size: 24B\narray([1, 2, 3])" + assert r == " Size: 8B\narray([0], dtype=uint64)"