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

Method test_mainloop

Lib/test/test_tkinter/test_misc.py:1376–1383  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1374 self.assertRaises(RuntimeError, tkinter.getboolean, '1')
1375
1376 def test_mainloop(self):
1377 self.assertRaises(RuntimeError, tkinter.mainloop)
1378 root = tkinter.Tk()
1379 root.after_idle(root.quit)
1380 tkinter.mainloop()
1381 root.destroy()
1382 tkinter.NoDefaultRoot()
1383 self.assertRaises(RuntimeError, tkinter.mainloop)
1384
1385
1386def _info_commands(widget, pattern=None):

Callers

nothing calls this directly

Calls 4

destroyMethod · 0.95
after_idleMethod · 0.80
assertRaisesMethod · 0.45
mainloopMethod · 0.45

Tested by

no test coverage detected