diff options
author | Bas van Beek <43369155+BvB93@users.noreply.github.com> | 2021-09-13 22:29:11 +0200 |
---|---|---|
committer | Bas van Beek <43369155+BvB93@users.noreply.github.com> | 2021-09-13 22:29:11 +0200 |
commit | 705c54c688bf1bdf5562624b8971c228faaed675 (patch) | |
tree | b9c22ee936bec063103529c99338c42d4e9fa69b /numpy/lib/tests/test_nanfunctions.py | |
parent | d9444356a137b872e402eaae78cecc870f9cbc6e (diff) | |
download | numpy-705c54c688bf1bdf5562624b8971c228faaed675.tar.gz |
TST: Fix a couple of `pytest` id labels
Co-Authored-By: Charles Harris <charlesr.harris@gmail.com>
Diffstat (limited to 'numpy/lib/tests/test_nanfunctions.py')
-rw-r--r-- | numpy/lib/tests/test_nanfunctions.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/lib/tests/test_nanfunctions.py b/numpy/lib/tests/test_nanfunctions.py index 931b32211..d2403b2fd 100644 --- a/numpy/lib/tests/test_nanfunctions.py +++ b/numpy/lib/tests/test_nanfunctions.py @@ -86,8 +86,8 @@ class TestNanFunctions_MinMax: @pytest.mark.parametrize("axis", [None, 0, 1]) @pytest.mark.parametrize("dtype", np.typecodes["AllFloat"]) @pytest.mark.parametrize("array", [ - np.full((3, 3), np.nan), np.array(np.nan), + np.full((3, 3), np.nan), ], ids=["0d", "2d"]) def test_allnans(self, axis, dtype, array): if axis is not None and array.ndim == 0: @@ -198,8 +198,8 @@ class TestNanFunctions_ArgminArgmax: @pytest.mark.parametrize("axis", [None, 0, 1]) @pytest.mark.parametrize("dtype", np.typecodes["AllFloat"]) @pytest.mark.parametrize("array", [ - np.full((3, 3), np.nan), np.array(np.nan), + np.full((3, 3), np.nan), ], ids=["0d", "2d"]) def test_allnans(self, axis, dtype, array): if axis is not None and array.ndim == 0: @@ -430,8 +430,8 @@ class TestNanFunctions_SumProd(SharedNanFunctionsTestsMixin): @pytest.mark.parametrize("axis", [None, 0, 1]) @pytest.mark.parametrize("dtype", np.typecodes["AllFloat"]) @pytest.mark.parametrize("array", [ - np.full((3, 3), np.nan), np.array(np.nan), + np.full((3, 3), np.nan), ], ids=["0d", "2d"]) def test_allnans(self, axis, dtype, array): if axis is not None and array.ndim == 0: |