Skip to content

Commit

Permalink
Fix test_func_return_too_large_int
Browse files Browse the repository at this point in the history
pythonGH-27613 (bpo 44839) was not backported, so exceptions differ between
main (3.11) and older versions.
  • Loading branch information
Erlend E. Aasland committed Jan 30, 2022
1 parent f0fd0bd commit 28de39f
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 28de39f

Please sign in to comment.