From: Erlend Egeberg Aasland Date: Wed, 3 Nov 2021 09:35:42 +0000 (+0100) Subject: bpo-24139: Fix test_sqlite3 `test_extended_error_code_on_exception()` on s390x RHEL... X-Git-Tag: v3.11.0a2~20 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0dfb8c4afee65f9e185882efd57f7012120da74c;p=thirdparty%2FPython%2Fcpython.git bpo-24139: Fix test_sqlite3 `test_extended_error_code_on_exception()` on s390x RHEL buildbots (GH-29382) --- diff --git a/Lib/test/test_sqlite3/test_dbapi.py b/Lib/test/test_sqlite3/test_dbapi.py index 0ba313d92983..998b7cb8c7fc 100644 --- a/Lib/test/test_sqlite3/test_dbapi.py +++ b/Lib/test/test_sqlite3/test_dbapi.py @@ -317,7 +317,7 @@ class ModuleTests(unittest.TestCase): 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