diff options
author | Sebastian Berg <sebastian@sipsolutions.net> | 2022-05-04 09:47:13 +0200 |
---|---|---|
committer | Sebastian Berg <sebastian@sipsolutions.net> | 2022-06-13 09:36:57 -0700 |
commit | fc865d8c6212b51bb03190f2cd732f1d484539dd (patch) | |
tree | 1cd5cf31d57de2db9da233403bc97b21e983de64 /numpy | |
parent | 96fd8ba3f51c6fe7ecfc797c4c33d7ae4dc2821a (diff) | |
download | numpy-fc865d8c6212b51bb03190f2cd732f1d484539dd.tar.gz |
TST: Fix the weird boolean+advanced indexing test
The test meant to assert shapes, but didn't actually do it.
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/core/tests/test_indexing.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/numpy/core/tests/test_indexing.py b/numpy/core/tests/test_indexing.py index efcb92c2e..9ef30eae2 100644 --- a/numpy/core/tests/test_indexing.py +++ b/numpy/core/tests/test_indexing.py @@ -1297,11 +1297,10 @@ class TestBooleanIndexing: def test_boolean_indexing_weirdness(self): # Weird boolean indexing things a = np.ones((2, 3, 4)) - a[False, True, ...].shape == (0, 2, 3, 4) - a[True, [0, 1], True, True, [1], [[2]]] == (1, 2) + assert a[False, True, ...].shape == (0, 2, 3, 4) + assert a[True, [0, 1], True, True, [1], [[2]]].shape == (1, 2) assert_raises(IndexError, lambda: a[False, [0, 1], ...]) - def test_boolean_indexing_fast_path(self): # These used to either give the wrong error, or incorrectly give no # error. |