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

Method mock_wait_window

Lib/test/test_tkinter/test_simpledialog.py:15–18  ·  view source on GitHub ↗
(w)

Source from the content-addressed store, hash-verified

13 def test_askinteger(self):
14 @staticmethod
15 def mock_wait_window(w):
16 nonlocal ismapped
17 ismapped = w.master.winfo_ismapped()
18 w.destroy()
19
20 with swap_attr(Dialog, 'wait_window', mock_wait_window):
21 ismapped = None

Callers

nothing calls this directly

Calls 2

winfo_ismappedMethod · 0.80
destroyMethod · 0.45

Tested by

no test coverage detected