Skip to content

Commit c6fd6b6

Browse files
committed
Small cleanups
1 parent 22038ae commit c6fd6b6

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

array_api_tests/test_linalg.py

+4-8
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ def _test_namedtuple(res, fields, func_name):
6868
def test_cholesky(x, kw):
6969
res = _array_module.linalg.cholesky(x, **kw)
7070

71-
assert res.shape == x.shape, "cholesky did not return the correct shape"
72-
assert res.dtype == x.dtype, "cholesky did not return the correct dtype"
71+
assert res.shape == x.shape, "cholesky() did not return the correct shape"
72+
assert res.dtype == x.dtype, "cholesky() did not return the correct dtype"
7373

7474
_test_stacks(_array_module.linalg.cholesky, x, kw, res)
7575

@@ -135,9 +135,7 @@ def true_diag(x_stack):
135135

136136
_test_stacks(_array_module.linalg.diagonal, x, kw, res, dims=1, true_val=true_diag)
137137

138-
@given(
139-
x=symmetric_matrices(finite=True),
140-
)
138+
@given(x=symmetric_matrices(finite=True))
141139
def test_eigh(x):
142140
res = _array_module.linalg.eigh(x)
143141

@@ -158,9 +156,7 @@ def test_eigh(x):
158156
# TODO: Test that res actually corresponds to the eigenvalues and
159157
# eigenvectors of x
160158

161-
@given(
162-
x=symmetric_matrices(finite=True),
163-
)
159+
@given(x=symmetric_matrices(finite=True))
164160
def test_eigvalsh(x):
165161
res = _array_module.linalg.eigvalsh(x)
166162

0 commit comments

Comments
 (0)