diff options
| author | Sebastian Berg <sebastian@sipsolutions.net> | 2022-05-12 15:47:28 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-12 15:47:28 +0200 |
| commit | fd45ab90e9ce6f6724a57f215592fd3066a7436c (patch) | |
| tree | 78cf60e7b77d89dddfa3b2ce1ca7b6ad01238c33 | |
| parent | b5251e7d08343024f7d8296d0def659d166bc5c0 (diff) | |
| parent | 6996397b00e4d2dd609deca430d05f6e80e8cea2 (diff) | |
| download | numpy-fd45ab90e9ce6f6724a57f215592fd3066a7436c.tar.gz | |
Merge pull request #21500 from seberg/test-fixup-ma-ndenumerate
TST: Fix uninitialized value in masked ndenumerate test
| -rw-r--r-- | numpy/ma/tests/test_extras.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/ma/tests/test_extras.py b/numpy/ma/tests/test_extras.py index 05403344b..1827edd1f 100644 --- a/numpy/ma/tests/test_extras.py +++ b/numpy/ma/tests/test_extras.py @@ -1674,7 +1674,7 @@ class TestShapeBase: class TestNDEnumerate: def test_ndenumerate_nomasked(self): - ordinary = np.ndarray(6).reshape((1, 3, 2)) + ordinary = np.arange(6.).reshape((1, 3, 2)) empty_mask = np.zeros_like(ordinary, dtype=bool) with_mask = masked_array(ordinary, mask=empty_mask) assert_equal(list(np.ndenumerate(ordinary)), |
