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)"