From c1f500b5d2f61cef242417a86da806bcef7faeb6 Mon Sep 17 00:00:00 2001 From: czgdp1807 Date: Thu, 24 Jun 2021 09:33:09 +0530 Subject: fixed linting issues --- numpy/linalg/tests/test_linalg.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/numpy/linalg/tests/test_linalg.py b/numpy/linalg/tests/test_linalg.py index 2fbab8cba..4c54c0b53 100644 --- a/numpy/linalg/tests/test_linalg.py +++ b/numpy/linalg/tests/test_linalg.py @@ -1747,7 +1747,8 @@ class TestQR: I_mat = np.identity(q1.shape[-1]) stack_I_mat = np.broadcast_to(I_mat, q1.shape[:-2] + (q1.shape[-1],)*2) - assert_almost_equal(matmul(swapaxes(q1, -1, -2).conj(), q1), stack_I_mat) + assert_almost_equal(matmul(swapaxes(q1, -1, -2).conj(), q1), + stack_I_mat) assert_almost_equal(np.triu(r1[..., :, :]), r1) # mode == 'r' @@ -1756,12 +1757,12 @@ class TestQR: assert_(isinstance(r2, a_type)) assert_almost_equal(r2, r1) - @pytest.mark.parametrize("size", [ + @pytest.mark.parametrize("size", [ (3, 4), (4, 3), (4, 4), (3, 0), (0, 3)]) - @pytest.mark.parametrize("outer_size", [ + @pytest.mark.parametrize("outer_size", [ (2, 2), (2,), (2, 3, 4)]) - @pytest.mark.parametrize("dt", [ + @pytest.mark.parametrize("dt", [ np.single, np.double, np.csingle, np.cdouble]) def test_stacked_inputs(self, outer_size, size, dt): -- cgit v1.2.1