MCPcopy Index your code
hub / github.com/python/cpython / test_callback

Method test_callback

Lib/test/test_tkinter/test_messagebox.py:15–19  ·  view source on GitHub ↗
(dialog, master)

Source from the content-addressed store, hash-verified

13
14 def test_showinfo(self):
15 def test_callback(dialog, master):
16 nonlocal ismapped
17 master.update()
18 ismapped = master.winfo_ismapped()
19 raise ZeroDivisionError
20
21 with swap_attr(Dialog, '_test_callback', test_callback):
22 ismapped = None

Callers

nothing calls this directly

Calls 2

winfo_ismappedMethod · 0.80
updateMethod · 0.45

Tested by

no test coverage detected