Skip to content

Commit 121fcf2

Browse files
committed
Better error message
Signed-off-by: Pradyot Ranjan <99216956+pradyotRanjan@users.noreply.github.com>
1 parent 721cdbf commit 121fcf2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/array_api_extra/testing.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -770,6 +770,7 @@ def assert_close(
770770
771771
Array arguments to `atol` and `rtol` must be valid input to :class:`float`.
772772
"""
773+
__tracebackhide__ = True
773774
actual, desired, xp, np = _check_ns_shape_dtype(
774775
actual, desired, check_dtype, check_shape, check_scalar, xp
775776
)
@@ -850,6 +851,7 @@ def assert_equal(
850851
assert_close : Similar function for inexact equality checks.
851852
numpy.testing.assert_array_equal : Similar function for NumPy arrays.
852853
"""
854+
__tracebackhide__ = True
853855
actual, desired, xp, np = _check_ns_shape_dtype(
854856
actual, desired, check_dtype, check_shape, check_scalar, xp
855857
)
@@ -908,6 +910,7 @@ def assert_less(
908910
assert_close : Similar function for inexact equality checks.
909911
numpy.testing.assert_array_less : Similar function for NumPy arrays.
910912
"""
913+
__tracebackhide__ = True
911914
x, y, xp, np = _check_ns_shape_dtype(
912915
x, y, check_dtype, check_shape, check_scalar, xp
913916
)

0 commit comments

Comments
 (0)