We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f0fd0bd commit 28de39fCopy full SHA for 28de39f
Lib/sqlite3/test/userfunctions.py
@@ -237,8 +237,8 @@ def test_func_return_nan(self):
237
238
def test_func_return_too_large_int(self):
239
cur = self.con.cursor()
240
- self.assertRaisesRegex(sqlite.DataError, "string or blob too big",
241
- self.con.execute, "select returntoolargeint()")
+ with self.assertRaises(sqlite.OperationalError):
+ self.con.execute("select returntoolargeint()")
242
243
def test_func_exception(self):
244
0 commit comments