(self)
| 487 | assert_array_equal(arr, np.array([0, 3, 2, 3, 4])) |
| 488 | |
| 489 | def test_subok(self): |
| 490 | class MyArray(np.ndarray): |
| 491 | pass |
| 492 | |
| 493 | arr = np.arange(5).view(MyArray) |
| 494 | assert_(not isinstance(sliding_window_view(arr, 2, |
| 495 | subok=False), |
| 496 | MyArray)) |
| 497 | assert_(isinstance(sliding_window_view(arr, 2, subok=True), MyArray)) |
| 498 | # Default behavior |
| 499 | assert_(not isinstance(sliding_window_view(arr, 2), MyArray)) |
| 500 | |
| 501 | |
| 502 | def as_strided_writeable(): |
nothing calls this directly
no test coverage detected