Skip to content

Commit 53ab262

Browse files
Update type watcher ID in test bc we know have a default one at 0
1 parent c12bb90 commit 53ab262

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Lib/test/test_capi/test_watchers.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,8 +282,10 @@ class C: pass
282282
self.watch(wid, C)
283283
with catch_unraisable_exception() as cm:
284284
C.foo = "bar"
285-
self.assertEqual(cm.unraisable.err_msg,
286-
f"Exception ignored in type watcher callback #0 for {C!r}")
285+
self.assertEqual(
286+
cm.unraisable.err_msg,
287+
f"Exception ignored in type watcher callback #1 for {C!r}",
288+
)
287289
self.assertIs(cm.unraisable.object, None)
288290
self.assertEqual(str(cm.unraisable.exc_value), "boom!")
289291
self.assert_events([])

0 commit comments

Comments
 (0)