Skip to content

Commit f3213cd

Browse files
Copilotmdboom
andcommitted
Fix exception string tests to use modernized tuple type annotations
Co-authored-by: mdboom <38294+mdboom@users.noreply.github.com>
1 parent 37e37be commit f3213cd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cuda_core/tests/test_memory.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,9 +229,9 @@ def test_buffer_dunder_dlpack():
229229
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 \[\]$"):
232+
with pytest.raises(BufferError, match=r"^Expected max_version tuple\[int, int\], got \[\]$"):
233233
buffer.__dlpack__(max_version=[])
234-
with pytest.raises(BufferError, match=r"^Expected max_version Tuple\[int, int\], got \(9, 8, 7\)$"):
234+
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

237237

0 commit comments

Comments
 (0)