(self)
| 15 | assert sys.getrefcount(x) == 2 |
| 16 | |
| 17 | def test_dunder_dlpack_stream(self): |
| 18 | x = np.arange(5) |
| 19 | x.__dlpack__(stream=None) |
| 20 | |
| 21 | with pytest.raises(RuntimeError): |
| 22 | x.__dlpack__(stream=1) |
| 23 | |
| 24 | def test_strides_not_multiple_of_itemsize(self): |
| 25 | dt = np.dtype([('int', np.int32), ('char', np.int8)]) |
nothing calls this directly
no test coverage detected