Skip to content

Commit 90e7837

Browse files
committed
Skip even not-so-very-large distances in test_linspace
1 parent b41d447 commit 90e7837

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

array_api_tests/test_creation_functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ def test_linspace(num, dtype, endpoint, data):
470470
assume(not xp.isnan(xp.asarray(start - stop, dtype=_dtype)))
471471
# avoid generating very large distances
472472
# https://github.com/data-apis/array-api-tests/issues/125
473-
assume(abs(stop - start) < dh.dtype_ranges[_dtype].max)
473+
assume(abs(stop - start) < math.sqrt(dh.dtype_ranges[_dtype].max))
474474

475475
kw = data.draw(
476476
hh.specified_kwargs(

0 commit comments

Comments
 (0)