From 13fe3919a5499e96725b8f347205279cb6f9ade9 Mon Sep 17 00:00:00 2001 From: "Erlend E. Aasland" Date: Wed, 3 Nov 2021 09:44:43 +0100 Subject: [PATCH] bpo-24139: Fix test_extended_error_code_on_exception() on s390x RHEL buildbots --- Lib/test/test_sqlite3/test_dbapi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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