Skip to content

Commit 4610b30

Browse files
committed
create a more informative error message
1 parent 376181c commit 4610b30

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: xarray_array_testing/reduction.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,7 @@ def test_variable_numerical_reduce(self, op, data):
2828
# compute using xp.<OP>(array)
2929
expected = getattr(self.xp, op)(variable.data)
3030

31-
assert isinstance(actual, self.array_type), type(actual)
31+
assert isinstance(
32+
actual, self.array_type
33+
), f"expected {self.array_type} but got {type(actual)}"
3234
self.assert_equal(actual, expected)

0 commit comments

Comments
 (0)