Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix test_func_return_too_large_int
GH-27613 (bpo 44839) was not backported, so exceptions differ between
main (3.11) and older versions.
  • Loading branch information
Erlend E. Aasland
Erlend E. Aasland committed Jan 30, 2022
commit 28de39ff7f8ffd4dd5a3664ba64b9f58e3ac0985
4 changes: 2 additions & 2 deletions Lib/sqlite3/test/userfunctions.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,8 @@ def test_func_return_nan(self):

def test_func_return_too_large_int(self):
cur = self.con.cursor()
self.assertRaisesRegex(sqlite.DataError, "string or blob too big",
self.con.execute, "select returntoolargeint()")
with self.assertRaises(sqlite.OperationalError):
self.con.execute("select returntoolargeint()")

def test_func_exception(self):
cur = self.con.cursor()
Expand Down