Skip to content

Commit be96c7f

Browse files
dnowacki-usgskeewis
authored andcommitted
fix dtype test
1 parent 4c24a04 commit be96c7f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xarray/tests/test_dataarray.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1884,8 +1884,8 @@ def test_astype_dtype(self):
18841884
original = DataArray([-1, 1, 2, 3, 1000])
18851885
converted = original.astype(float)
18861886
assert_array_equal(original, converted)
1887-
assert original.dtype == np.int64
1888-
assert converted.dtype == np.float64
1887+
assert np.issubdtype(original.dtype, np.integer)
1888+
assert np.issubdtype(converted.dtype, np.floating)
18891889

18901890
def test_is_null(self):
18911891
x = np.random.RandomState(42).randn(5, 6)

0 commit comments

Comments
 (0)