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

Method test_invalid_name

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

Source from the content-addressed store, hash-verified

91 self.assertNotEqual(v1, v5)
92
93 def test_invalid_name(self):
94 with self.assertRaises(TypeError):
95 Variable(self.root, name=123)
96
97 def test_null_in_name(self):
98 with self.assertRaises(ValueError):

Callers

nothing calls this directly

Calls 2

VariableClass · 0.90
assertRaisesMethod · 0.45

Tested by

no test coverage detected