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

Method test_invalid_value

Lib/test/test_tkinter/test_variables.py:292–296  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

290 self.assertAlmostEqual(456, v.get())
291
292 def test_invalid_value(self):
293 v = DoubleVar(self.root, name="name")
294 self.root.globalsetvar("name", "value")
295 with self.assertRaises((ValueError, TclError)):
296 v.get()
297
298
299class TestBooleanVar(TestBase):

Callers

nothing calls this directly

Calls 3

getMethod · 0.95
DoubleVarClass · 0.90
assertRaisesMethod · 0.45

Tested by

no test coverage detected