diff options
| author | czgdp1807 <gdp.1807@gmail.com> | 2021-06-24 09:33:09 +0530 |
|---|---|---|
| committer | czgdp1807 <gdp.1807@gmail.com> | 2021-06-24 09:33:09 +0530 |
| commit | c1f500b5d2f61cef242417a86da806bcef7faeb6 (patch) | |
| tree | 3ecaebd55d19181c91376c1bb66f33929b7e4d19 /numpy/linalg/tests | |
| parent | e88849df2bb0c6a9c61df1c909bdbc0e87789329 (diff) | |
| download | numpy-c1f500b5d2f61cef242417a86da806bcef7faeb6.tar.gz | |
fixed linting issues
Diffstat (limited to 'numpy/linalg/tests')
| -rw-r--r-- | numpy/linalg/tests/test_linalg.py | 9 |
1 files 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): |
