Skip to content

Commit 8f240f6

Browse files
committed
Pass arguments through properly
1 parent aefe195 commit 8f240f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

array_api_tests/pytest_helpers.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ def assert_scalar_isclose(
453453
f_func = f"{func_name}({fmt_kw(kw)})"
454454
msg = f"{repr_name}={out}, but should be roughly {expected} [{f_func}]"
455455
assert type_ in [float, complex] # Sanity check
456-
assert cmath.isclose(out, expected, rel_tol=0.25, abs_tol=1), msg
456+
assert cmath.isclose(out, expected, rel_tol=rel_tol, abs_tol=abs_tol), msg
457457

458458

459459
def assert_fill(

0 commit comments

Comments
 (0)