Skip to content

Commit 02542ff

Browse files
committed
Show the arrays in the error message for assert_exactly_equal
1 parent 246e38a commit 02542ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

array_api_tests/array_helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ def assert_exactly_equal(x, y):
217217

218218
assert x.dtype == y.dtype, f"The input arrays do not have the same dtype ({x.dtype} != {y.dtype})"
219219

220-
assert all(exactly_equal(x, y)), "The input arrays have different values"
220+
assert all(exactly_equal(x, y)), f"The input arrays have different values ({x!r} != {y!r})"
221221

222222
def assert_finite(x):
223223
"""

0 commit comments

Comments
 (0)