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 9d505a6 commit 21e639cCopy full SHA for 21e639c
xarray/tests/test_array_api.py
@@ -51,6 +51,8 @@ def test_aggregation_skipna(arrays) -> None:
51
assert_equal(actual, expected)
52
53
54
+# casting nan warns
55
+@pytest.mark.filterwarnings("ignore:invalid value encountered in cast")
56
def test_astype(arrays) -> None:
57
np_arr, xp_arr = arrays
58
expected = np_arr.astype(np.int64)
xarray/tests/test_dataset.py
@@ -6007,6 +6007,8 @@ def test_dataset_number_math(self) -> None:
6007
actual += 0
6008
assert_identical(ds, actual)
6009
6010
+ # casting nan warns
6011
+ @pytest.mark.filterwarnings("ignore:invalid value encountered in cast")
6012
def test_unary_ops(self) -> None:
6013
ds = self.make_example_math_dataset()
6014
0 commit comments