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

Method testLoadTk

Lib/test/test_tkinter/test_loadtk.py:14–19  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

12
13 @unittest.skipIf('DISPLAY' not in os.environ, 'No $DISPLAY set.')
14 def testLoadTk(self):
15 tcl = Tcl()
16 self.assertRaises(TclError,tcl.winfo_geometry)
17 tcl.loadtk()
18 self.assertEqual('1x1+0+0', tcl.winfo_geometry())
19 tcl.destroy()
20
21 def testLoadTkFailure(self):
22 old_display = None

Callers

nothing calls this directly

Calls 6

TclFunction · 0.90
loadtkMethod · 0.80
winfo_geometryMethod · 0.80
assertRaisesMethod · 0.45
assertEqualMethod · 0.45
destroyMethod · 0.45

Tested by

no test coverage detected