Skip to content

Commit d3186be

Browse files
author
Erlend E. Aasland
committed
Adapt pythonGH-27642 tests
1 parent 8eb783e commit d3186be

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/test/test_sqlite3/test_userfunctions.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,8 @@ def test_too_large_int(self):
340340
"select spam(?)", (1 << 65,))
341341

342342
def test_non_contiguous_blob(self):
343-
self.assertRaisesRegex(ValueError, "could not convert BLOB to buffer",
343+
self.assertRaisesRegex(BufferError,
344+
"underlying buffer is not C-contiguous",
344345
self.con.execute, "select spam(?)",
345346
(memoryview(b"blob")[::2],))
346347

0 commit comments

Comments
 (0)