Skip to content

Commit 0572275

Browse files
committed
Add missing sh import, remove unused res assignments
1 parent 713b449 commit 0572275

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

array_api_tests/test_linalg.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
rtol_shared_matrix_shapes, rtols)
3131
from . import dtype_helpers as dh
3232
from . import pytest_helpers as ph
33+
from . import shape_helpers as sh
3334

3435
from . import _array_module
3536
from . import _array_module as xp
@@ -362,7 +363,7 @@ def test_matrix_power(x, n):
362363
kw=kwargs(rtol=rtols)
363364
)
364365
def test_matrix_rank(x, kw):
365-
res = linalg.matrix_rank(x, **kw)
366+
linalg.matrix_rank(x, **kw)
366367

367368
@given(
368369
x=xps.arrays(dtype=dtypes, shape=matrix_shapes()),
@@ -411,7 +412,7 @@ def test_outer(x1, x2):
411412
kw=kwargs(rtol=rtols)
412413
)
413414
def test_pinv(x, kw):
414-
res = linalg.pinv(x, **kw)
415+
linalg.pinv(x, **kw)
415416

416417
@pytest.mark.xp_extension('linalg')
417418
@given(
@@ -512,7 +513,7 @@ def _x2_shapes(draw):
512513
@pytest.mark.xp_extension('linalg')
513514
@given(*solve_args())
514515
def test_solve(x1, x2):
515-
res = linalg.solve(x1, x2)
516+
linalg.solve(x1, x2)
516517

517518
@pytest.mark.xp_extension('linalg')
518519
@given(

0 commit comments

Comments
 (0)