(obj, max_version, copy)
| 299 | @pytest.mark.parametrize('max_version', [(1, 0), (1, 3), (2, 0)]) |
| 300 | @pytest.mark.parametrize('copy', [None, False, True]) |
| 301 | def test_dlpack_versioned_capsule(obj, max_version, copy): |
| 302 | capsule = obj.__dlpack__(max_version=max_version, copy=copy) |
| 303 | assert PyCapsule_IsValid(capsule, b"dltensor_versioned") is True |
| 304 | |
| 305 | |
| 306 | @requires_numpy_version("2.1.0") |
nothing calls this directly
no test coverage detected