8000 bpo-45243: Use connection limits to simplify `sqlite3` tests by erlend-aasland · Pull Request #29356 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content
8000

bpo-45243: Use connection limits to simplify sqlite3 tests #29356

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
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
7403
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
0