Skip to content

Commit 1b93d9e

Browse files
committed
update tests to comply with spec and make Cython 3.1 happy
1 parent dcc1b37 commit 1b93d9e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

cuda_core/tests/test_memory.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -226,11 +226,11 @@ def test_buffer_dunder_dlpack():
226226
capsule = buffer.__dlpack__(max_version=(1, 0))
227227
assert "dltensor" in repr(capsule)
228228
with pytest.raises(BufferError, match=r"^Sorry, not supported: dl_device other than None$"):
229-
buffer.__dlpack__(dl_device=[])
229+
buffer.__dlpack__(dl_device=())
230230
with pytest.raises(BufferError, match=r"^Sorry, not supported: copy=True$"):
231231
buffer.__dlpack__(copy=True)
232-
with pytest.raises(BufferError, match=r"^Expected max_version Tuple\[int, int\], got \[\]$"):
233-
buffer.__dlpack__(max_version=[])
232+
with pytest.raises(BufferError, match=r"^Expected max_version Tuple\[int, int\], got \(\)$"):
233+
buffer.__dlpack__(max_version=())
234234
with pytest.raises(BufferError, match=r"^Expected max_version Tuple\[int, int\], got \(9, 8, 7\)$"):
235235
buffer.__dlpack__(max_version=(9, 8, 7))
236236

0 commit comments

Comments
 (0)