mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
bpo-24139: Fix test_sqlite3 test_extended_error_code_on_exception()
on s390x RHEL buildbots (GH-29382)
This commit is contained in:
parent
456e27ac0a
commit
0dfb8c4afe
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue