diff --git a/Lib/test/test_sqlite3/test_dbapi.py b/Lib/test/test_sqlite3/test_dbapi.py index 0ba313d9298301..998b7cb8c7fc04 100644 --- a/Lib/test/test_sqlite3/test_dbapi.py +++ b/Lib/test/test_sqlite3/test_dbapi.py @@ -317,7 +317,7 @@ def test_extended_error_code_on_exception(self): with managed_connect(":memory:", in_mem=True) as con: with con: con.execute("create table t(t integer check(t > 0))") - errmsg = "CHECK constraint failed" + errmsg = "constraint failed" with self.assertRaisesRegex(sqlite.IntegrityError, errmsg) as cm: con.execute("insert into t values(-1)") exc = cm.exception