[Python-checkins] bpo-24139: Fix test_sqlite3 `test_extended_error_code_on_exception()` on s390x RHEL buildbots (GH-29382)
Fidget-Spinner
webhook-mailer at python.org
Wed Nov 3 05:35:47 EDT 2021
https://github.com/python/cpython/commit/0dfb8c4afee65f9e185882efd57f7012120da74c
commit: 0dfb8c4afee65f9e185882efd57f7012120da74c
branch: main
author: Erlend Egeberg Aasland <erlend.aasland at innova.no>
committer: Fidget-Spinner <28750310+Fidget-Spinner at users.noreply.github.com>
date: 2021-11-03T17:35:42+08:00
summary:
bpo-24139: Fix test_sqlite3 `test_extended_error_code_on_exception()` on s390x RHEL buildbots (GH-29382)
files:
M Lib/test/test_sqlite3/test_dbapi.py
diff --git a/Lib/test/test_sqlite3/test_dbapi.py b/Lib/test/test_sqlite3/test_dbapi.py
index 0ba313d929830..998b7cb8c7fc0 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
More information about the Python-checkins
mailing list