Skip to content

Commit 10cb57a

Browse files
committed
Fix assertion statements
1 parent afc7822 commit 10cb57a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

array_api_tests/test_creation_functions.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def test_eye(n_rows, n_cols, k, dtype):
109109
else:
110110
a = eye(n_rows, n_cols, **kwargs)
111111
if dtype is None:
112-
assert is_float_dtype(a.dtype), "eye() should returned an array with the default floating point dtype"
112+
assert is_float_dtype(a.dtype), "eye() should return an array with the default floating point dtype"
113113
else:
114114
assert a.dtype == dtype, "eye() did not produce the correct dtype"
115115

@@ -209,11 +209,11 @@ def test_linspace(start, stop, num, dtype, endpoint):
209209
a = linspace(start, stop, num, **kwargs)
210210

211211
if dtype is None:
212-
assert is_float_dtype(a.dtype), "linspace() should returned an array with the default floating point dtype"
212+
assert is_float_dtype(a.dtype), "linspace() should return an array with the default floating point dtype"
213213
else:
214214
assert a.dtype == dtype, "linspace() did not produce the correct dtype"
215215

216-
assert a.shape == (num,), "linspace() did not returned an array with the correct shape"
216+
assert a.shape == (num,), "linspace() did not return an array with the correct shape"
217217

218218
if endpoint in [None, True]:
219219
if num > 1:

0 commit comments

Comments
 (0)