summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_capi/test_watchers.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_capi/test_watchers.py')
-rw-r--r--Lib/test/test_capi/test_watchers.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/test/test_capi/test_watchers.py b/Lib/test/test_capi/test_watchers.py
index 90665a7..709b5e1 100644
--- a/Lib/test/test_capi/test_watchers.py
+++ b/Lib/test/test_capi/test_watchers.py
@@ -282,8 +282,10 @@ class TestTypeWatchers(unittest.TestCase):
self.watch(wid, C)
with catch_unraisable_exception() as cm:
C.foo = "bar"
- self.assertEqual(cm.unraisable.err_msg,
- f"Exception ignored in type watcher callback #0 for {C!r}")
+ self.assertEqual(
+ cm.unraisable.err_msg,
+ f"Exception ignored in type watcher callback #1 for {C!r}",
+ )
self.assertIs(cm.unraisable.object, None)
self.assertEqual(str(cm.unraisable.exc_value), "boom!")
self.assert_events([])