We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c12bb90 commit 53ab262Copy full SHA for 53ab262
Lib/test/test_capi/test_watchers.py
@@ -282,8 +282,10 @@ class C: pass
282
self.watch(wid, C)
283
with catch_unraisable_exception() as cm:
284
C.foo = "bar"
285
- self.assertEqual(cm.unraisable.err_msg,
286
- f"Exception ignored in type watcher callback #0 for {C!r}")
+ self.assertEqual(
+ cm.unraisable.err_msg,
287
+ f"Exception ignored in type watcher callback #1 for {C!r}",
288
+ )
289
self.assertIs(cm.unraisable.object, None)
290
self.assertEqual(str(cm.unraisable.exc_value), "boom!")
291
self.assert_events([])
0 commit comments