Skip to content
Prev Previous commit
Next Next commit
Address review: make it clear which function is failing
  • Loading branch information
Erlend E. Aasland committed Nov 4, 2021
commit a6da63452050efb7cc279636cdc260889b764f64
2 changes: 1 addition & 1 deletion Lib/test/test_sqlite3/test_userfunctions.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,8 @@ def test_func_too_many_args(self):
category = sqlite.SQLITE_LIMIT_FUNCTION_ARG
msg = "too many arguments on function"
with cx_limit(self.con, category=category, limit=1):
self.con.create_function("addint", 2, lambda x, y: x+y)
with self.assertRaisesRegex(sqlite.OperationalError, msg):
self.con.create_function("addint", 2, lambda x, y: x+y)
self.con.execute("select addint(1, 2)");

def test_func_ref_count(self):
Expand Down