diff options
| author | Charles Harris <charlesr.harris@gmail.com> | 2016-12-05 11:18:17 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-12-05 11:18:17 -0500 |
| commit | b297cb7eaeebbd6c66ea263fc5da61d43c4b01b8 (patch) | |
| tree | 998d2a822686c88dc8a42bbe147bf8a636a240fa /numpy | |
| parent | 6587f66b57daf10f17ebba8b759d98542e38077d (diff) | |
| parent | f801f76096136fdb9b261df5d8cde5adcaf134d5 (diff) | |
| download | numpy-b297cb7eaeebbd6c66ea263fc5da61d43c4b01b8.tar.gz | |
Merge pull request #8343 from jakirkham/tst_ell_view
TST: Ellipsis indexing creates a view
Diffstat (limited to 'numpy')
| -rw-r--r-- | numpy/core/tests/test_indexing.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/tests/test_indexing.py b/numpy/core/tests/test_indexing.py index 5587b407b..55eeb694a 100644 --- a/numpy/core/tests/test_indexing.py +++ b/numpy/core/tests/test_indexing.py @@ -141,10 +141,10 @@ class TestIndexing(TestCase): assert_raises(IndexError, a.__getitem__, b) def test_ellipsis_index(self): - # Ellipsis index does not create a view a = np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]]) + assert_(a[...] is not a) assert_equal(a[...], a) # `a[...]` was `a` in numpy <1.9. assert_(a[...].base is a) |
