Skip to content

Commit ca70fbe

Browse files
committed
Reduce the relative tolerance in assert_allclose
This still is going to require some tweaking.
1 parent 241220e commit ca70fbe

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
@@ -171,7 +171,7 @@ def allclose(x, y, rel_tol=0.25, abs_tol=1, return_indices=False):
171171
return False
172172
return True
173173

174-
def assert_allclose(x, y, rel_tol=0.25, abs_tol=1):
174+
def assert_allclose(x, y, rel_tol=1, abs_tol=0.):
175175
"""
176176
Test that x and y are approximately equal to each other.
177177

0 commit comments

Comments
 (0)