(self)
| 5887 | |
| 5888 | @_no_tracing |
| 5889 | def test_obj_obj(self): |
| 5890 | # check memory is initialized on resize, gh-4857 |
| 5891 | a = np.ones(10, dtype=[('k', object, 2)]) |
| 5892 | if IS_PYPY: |
| 5893 | a.resize(15, refcheck=False) |
| 5894 | else: |
| 5895 | a.resize(15,) |
| 5896 | assert_equal(a.shape, (15,)) |
| 5897 | assert_array_equal(a['k'][-5:], 0) |
| 5898 | assert_array_equal(a['k'][:-5], 1) |
| 5899 | |
| 5900 | def test_empty_view(self): |
| 5901 | # check that sizes containing a zero don't trigger a reallocate for |
nothing calls this directly
no test coverage detected