Skip to content

Commit 8ad6b62

Browse files
authored
Merge pull request #152 from asmeurer/test_linspace-fix
Fix a check in test_linspace
2 parents 295ee69 + 24f6f20 commit 8ad6b62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

array_api_tests/test_creation_functions.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ def test_linspace(num, dtype, endpoint, data):
447447
assume(not xp.isnan(xp.asarray(start - stop, dtype=_dtype)))
448448
# avoid generating very large distances
449449
# https://github.com/data-apis/array-api-tests/issues/125
450-
assume(abs(stop - start) < dh.dtype_ranges[dtype].max)
450+
assume(abs(stop - start) < dh.dtype_ranges[_dtype].max)
451451

452452
kw = data.draw(
453453
hh.specified_kwargs(

0 commit comments

Comments
 (0)