mirror of
https://github.com/python/cpython.git
synced 2025-09-04 07:51:13 +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 managed_connect(":memory:", in_mem=True) as con:
|
||||||
with con:
|
with con:
|
||||||
con.execute("create table t(t integer check(t > 0))")
|
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:
|
with self.assertRaisesRegex(sqlite.IntegrityError, errmsg) as cm:
|
||||||
con.execute("insert into t values(-1)")
|
con.execute("insert into t values(-1)")
|
||||||
exc = cm.exception
|
exc = cm.exception
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue