(obj, max_version)
| 253 | @pytest.mark.parametrize('obj', dlpack_objects()) |
| 254 | @pytest.mark.parametrize('max_version', [None, (0, 8)]) |
| 255 | def test_dlpack_legacy_capsule(obj, max_version): |
| 256 | with pytest.warns(DeprecationWarning, match="unversioned DLPack capsule"): |
| 257 | capsule = obj.__dlpack__(max_version=max_version) |
| 258 | assert PyCapsule_IsValid(capsule, b"dltensor") is True |
| 259 | |
| 260 | |
| 261 | def immutable_tensor(): |
nothing calls this directly
no test coverage detected