Skip to content

Commit 28de39f

Browse files
author
Erlend E. Aasland
committed
Fix test_func_return_too_large_int
GH-27613 (bpo 44839) was not backported, so exceptions differ between main (3.11) and older versions.
1 parent f0fd0bd commit 28de39f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/sqlite3/test/userfunctions.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,8 @@ def test_func_return_nan(self):
237237

238238
def test_func_return_too_large_int(self):
239239
cur = self.con.cursor()
240-
self.assertRaisesRegex(sqlite.DataError, "string or blob too big",
241-
self.con.execute, "select returntoolargeint()")
240+
with self.assertRaises(sqlite.OperationalError):
241+
self.con.execute("select returntoolargeint()")
242242

243243
def test_func_exception(self):
244244
cur = self.con.cursor()

0 commit comments

Comments
 (0)