(self)
| 8 | class TestDLPack: |
| 9 | @pytest.mark.skipif(IS_PYPY, reason="PyPy can't get refcounts.") |
| 10 | def test_dunder_dlpack_refcount(self): |
| 11 | x = np.arange(5) |
| 12 | y = x.__dlpack__() |
| 13 | assert sys.getrefcount(x) == 3 |
| 14 | del y |
| 15 | assert sys.getrefcount(x) == 2 |
| 16 | |
| 17 | def test_dunder_dlpack_stream(self): |
| 18 | x = np.arange(5) |
nothing calls this directly
no test coverage detected