aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_sqlite3/test_hooks.py
diff options
context:
space:
mode:
authorErlend Egeberg Aasland <erlend.aasland@innova.no>2021-11-29 16:22:32 +0100
committerGitHub <noreply@github.com>2021-11-29 15:22:32 +0000
commitc4a69a4ad035513ada1c0d41a46723606b538e13 (patch)
tree29ef43642bc01b65bfa9305d3e3c74952eff2d01 /Lib/test/test_sqlite3/test_hooks.py
parent6ac3c8a3140c17bd71ba98dfc5250c371101e77c (diff)
downloadcpython-c4a69a4ad035513ada1c0d41a46723606b538e13.tar.gz
cpython-c4a69a4ad035513ada1c0d41a46723606b538e13.zip
bpo-45828: Use unraisable exceptions within sqlite3 callbacks (FH-29591)
Diffstat (limited to 'Lib/test/test_sqlite3/test_hooks.py')
-rw-r--r--Lib/test/test_sqlite3/test_hooks.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_sqlite3/test_hooks.py b/Lib/test/test_sqlite3/test_hooks.py
index bf454b2aa88..9e5e53ad223 100644
--- a/Lib/test/test_sqlite3/test_hooks.py
+++ b/Lib/test/test_sqlite3/test_hooks.py
@@ -197,7 +197,7 @@ class ProgressTests(unittest.TestCase):
con.execute("select 1 union select 2 union select 3").fetchall()
self.assertEqual(action, 0, "progress handler was not cleared")
- @with_tracebacks(['bad_progress', 'ZeroDivisionError'])
+ @with_tracebacks(ZeroDivisionError, name="bad_progress")
def test_error_in_progress_handler(self):
con = sqlite.connect(":memory:")
def bad_progress():
@@ -208,7 +208,7 @@ class ProgressTests(unittest.TestCase):
create table foo(a, b)
""")
- @with_tracebacks(['__bool__', 'ZeroDivisionError'])
+ @with_tracebacks(ZeroDivisionError, name="bad_progress")
def test_error_in_progress_handler_result(self):
con = sqlite.connect(":memory:")
class BadBool: