()
| 8619 | assert_equal(arr1, arr3) |
| 8620 | |
| 8621 | def test_array_interface_offset(): |
| 8622 | arr = np.array([1, 2, 3], dtype='int32') |
| 8623 | interface = dict(arr.__array_interface__) |
| 8624 | interface['data'] = memoryview(arr) |
| 8625 | interface['shape'] = (2,) |
| 8626 | interface['offset'] = 4 |
| 8627 | |
| 8628 | |
| 8629 | class DummyArray: |
| 8630 | __array_interface__ = interface |
| 8631 | |
| 8632 | arr1 = np.asarray(DummyArray()) |
| 8633 | assert_equal(arr1, arr[1:]) |
| 8634 | |
| 8635 | def test_array_interface_unicode_typestr(): |
| 8636 | arr = np.array([1, 2, 3], dtype='int32') |
nothing calls this directly
no test coverage detected