Lines Matching refs:getint
140 result = tcl.getint(' %d ' % i)
144 self.assertEqual(tcl.getint(' {:#o} '.format(i)), i)
145 self.assertEqual(tcl.getint(' %#o ' % i), i)
146 self.assertEqual(tcl.getint(' %#x ' % i), i)
148 self.assertRaises(TclError, tcl.getint, str(2**1000))
149 self.assertEqual(tcl.getint(42), 42)
150 self.assertRaises(TypeError, tcl.getint)
151 self.assertRaises(TypeError, tcl.getint, '42', '10')
152 self.assertRaises(TypeError, tcl.getint, 42.0)
153 self.assertRaises(TclError, tcl.getint, 'a')
155 tcl.getint, '42\0')
157 self.assertEqual(tcl.getint(unicode('42')), 42)
159 tcl.getint, '42' + unichr(0xd800))
746 self.assertRaises(OverflowError, tk.getint, value)