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

Method test_callback

Lib/test/test_tkinter/test_colorchooser.py:46–50  ·  view source on GitHub ↗
(dialog, master)

Source from the content-addressed store, hash-verified

44
45 def test_askcolor(self):
46 def test_callback(dialog, master):
47 nonlocal ismapped
48 master.update()
49 ismapped = master.winfo_ismapped()
50 raise ZeroDivisionError
51
52 with swap_attr(Dialog, '_test_callback', test_callback):
53 ismapped = None

Callers

nothing calls this directly

Calls 2

winfo_ismappedMethod · 0.80
updateMethod · 0.45

Tested by

no test coverage detected