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

Method test_invalid_value

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

Source from the content-addressed store, hash-verified

263 self.assertEqual(876, v.get())
264
265 def test_invalid_value(self):
266 v = IntVar(self.root, name="name")
267 self.root.globalsetvar("name", "value")
268 with self.assertRaises((ValueError, TclError)):
269 v.get()
270
271
272class TestDoubleVar(TestBase):

Callers

nothing calls this directly

Calls 3

getMethod · 0.95
IntVarClass · 0.90
assertRaisesMethod · 0.45

Tested by

no test coverage detected