Skip to content
Prev Previous commit
Next Next commit
Add single-argument test
  • Loading branch information
Erlend E. Aasland committed Nov 5, 2021
commit c53ffd7841a0dd63c6e09244131be0aaeab6e028
1 change: 1 addition & 0 deletions Lib/test/test_sqlite3/test_userfunctions.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ 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.execute("select round(1.1)");
with self.assertRaisesRegex(sqlite.OperationalError, msg):
self.con.execute("select max(1, 2)");

Expand Down