We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
test_extended_error_code_on_exception()
1 parent 456e27a commit 0dfb8c4Copy full SHA for 0dfb8c4
Lib/test/test_sqlite3/test_dbapi.py
@@ -317,7 +317,7 @@ def test_extended_error_code_on_exception(self):
317
with managed_connect(":memory:", in_mem=True) as con:
318
with con:
319
con.execute("create table t(t integer check(t > 0))")
320
- errmsg = "CHECK constraint failed"
+ errmsg = "constraint failed"
321
with self.assertRaisesRegex(sqlite.IntegrityError, errmsg) as cm:
322
con.execute("insert into t values(-1)")
323
exc = cm.exception
0 commit comments