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

Method testUnsetVar

Lib/test/test_tcl.py:163–168  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

161 self.assertEqual(a, expected)
162
163 def testUnsetVar(self):
164 tcl = self.interp
165 tcl.setvar('a',1)
166 self.assertEqual(tcl.eval('info exists a'),'1')
167 tcl.unsetvar('a')
168 self.assertEqual(tcl.eval('info exists a'),'0')
169
170 def testUnsetVarArray(self):
171 tcl = self.interp

Callers

nothing calls this directly

Calls 3

evalMethod · 0.80
setvarMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected