Skip to content

Commit 460034a

Browse files
honnoasmeurer
andauthored
Fix func name in error messages
Co-authored-by: Aaron Meurer <asmeurer@gmail.com>
1 parent ec081d7 commit 460034a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

array_api_tests/test_creation_functions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def test_arange(dtype, data):
164164
else:
165165
assert out.dtype == dtype
166166
assert out.ndim == 1, f"{out.ndim=}, but should be 1 [linspace()]"
167-
f_func = f"[linspace({start=}, {stop=}, {step=})]"
167+
f_func = f"[arange({start=}, {stop=}, {step=})]"
168168
# We check size is roughly as expected to avoid edge cases e.g.
169169
#
170170
# >>> xp.arange(2, step=0.333333333333333)
@@ -194,7 +194,7 @@ def test_arange(dtype, data):
194194
if out.size > 0:
195195
assert ah.equal(
196196
out[0], ah.asarray(_start, dtype=out.dtype)
197-
), f"out[0]={out[0]}, but should be {_start} [linspace({start=}, {stop=})]"
197+
), f"out[0]={out[0]}, but should be {_start} [arange({start=}, {stop=})]"
198198

199199

200200
@given(hh.shapes(), hh.kwargs(dtype=st.none() | hh.shared_dtypes))

0 commit comments

Comments
 (0)