• Home
  • Raw
  • Download

Lines Matching refs:assertRaises

44         self.assertRaises(TypeError, _tkinter._flatten, True)
64 self.assertRaises(TclError,tcl.eval,'set a')
68 self.assertRaises(TclError,tcl.eval,'this is wrong')
77 self.assertRaises(TclError,tcl.call,'set','a')
81 self.assertRaises(TclError,tcl.call,'this','is','wrong')
105 self.assertRaises(TclError,tcl.getvar,'a')
109 self.assertRaises(TclError,tcl.getvar,'a(1)')
130 self.assertRaises(TclError,tcl.unsetvar,'a')
149 self.assertRaises(TclError, tcl.getint, str(2**1000))
151 self.assertRaises(TypeError, tcl.getint)
152 self.assertRaises(TypeError, tcl.getint, '42', '10')
153 self.assertRaises(TypeError, tcl.getint, b'42')
154 self.assertRaises(TypeError, tcl.getint, 42.0)
155 self.assertRaises(TclError, tcl.getint, 'a')
156 self.assertRaises((TypeError, ValueError, TclError),
158 self.assertRaises((UnicodeEncodeError, ValueError, TclError),
167 self.assertRaises(TypeError, tcl.getdouble)
168 self.assertRaises(TypeError, tcl.getdouble, '42.5', '10')
169 self.assertRaises(TypeError, tcl.getdouble, b'42.5')
170 self.assertRaises(TclError, tcl.getdouble, 'a')
171 self.assertRaises((TypeError, ValueError, TclError),
173 self.assertRaises((UnicodeEncodeError, ValueError, TclError),
182 self.assertRaises(TypeError, tcl.getboolean)
183 self.assertRaises(TypeError, tcl.getboolean, 'on', '1')
184 self.assertRaises(TypeError, tcl.getboolean, b'on')
185 self.assertRaises(TypeError, tcl.getboolean, 1.0)
186 self.assertRaises(TclError, tcl.getboolean, 'a')
187 self.assertRaises((TypeError, ValueError, TclError),
189 self.assertRaises((UnicodeEncodeError, ValueError, TclError),
224 self.assertRaises(TclError,tcl.evalfile,filename)
228 self.assertRaises(TclError,tcl.eval,'package require DNE')
261 self.assertRaises(TypeError, tcl.exprstring)
262 self.assertRaises(TypeError, tcl.exprstring, '8.2', '+6')
263 self.assertRaises(TypeError, tcl.exprstring, b'8.2 + 6')
264 self.assertRaises(TclError, tcl.exprstring, 'spam')
296 self.assertRaises(TypeError, tcl.exprdouble)
297 self.assertRaises(TypeError, tcl.exprdouble, '8.2', '+6')
298 self.assertRaises(TypeError, tcl.exprdouble, b'8.2 + 6')
299 self.assertRaises(TclError, tcl.exprdouble, 'spam')
315 self.assertRaises(TclError, tcl.exprdouble, '"abc"')
328 self.assertRaises(TypeError, tcl.exprlong)
329 self.assertRaises(TypeError, tcl.exprlong, '8.2', '+6')
330 self.assertRaises(TypeError, tcl.exprlong, b'8.2 + 6')
331 self.assertRaises(TclError, tcl.exprlong, 'spam')
347 self.assertRaises(TclError, tcl.exprlong, '"abc"')
349 self.assertRaises(TclError, tcl.exprlong, '2**64')
361 self.assertRaises(TypeError, tcl.exprboolean)
362 self.assertRaises(TypeError, tcl.exprboolean, '8.2', '+6')
363 self.assertRaises(TypeError, tcl.exprboolean, b'8.2 + 6')
364 self.assertRaises(TclError, tcl.exprboolean, 'spam')
388 self.assertRaises(TclError, tcl.exprboolean, '"abc"')
423 self.assertRaises(TclError, tcl.call, 'expr', str(2**1000))
528 self.assertRaises(TypeError, splitlist)
529 self.assertRaises(TypeError, splitlist, 'a', 'b')
530 self.assertRaises(TypeError, splitlist, 2)
572 self.assertRaises(TclError, splitlist, '{')
580 self.assertRaises(TypeError, split)
581 self.assertRaises(TypeError, split, 'a', 'b')
582 self.assertRaises(TypeError, split, 2)
643 self.assertRaises(RuntimeError, splitdict, tcl, '-a b -c ')
644 self.assertRaises(RuntimeError, splitdict, tcl, ('-a', 'b', '-c'))
700 self.assertRaises(TypeError, _tkinter.Tcl_Obj)
712 self.assertRaises(OverflowError, self.interp.call, 'string', 'index', value, 0)
720 self.assertRaises(OverflowError, tk.getint, value)
721 self.assertRaises(OverflowError, tk.getdouble, value)
722 self.assertRaises(OverflowError, tk.getboolean, value)
723 self.assertRaises(OverflowError, tk.eval, value)
724 self.assertRaises(OverflowError, tk.evalfile, value)
725 self.assertRaises(OverflowError, tk.record, value)
726 self.assertRaises(OverflowError, tk.adderrorinfo, value)
727 self.assertRaises(OverflowError, tk.setvar, value, 'x', 'a')
728 self.assertRaises(OverflowError, tk.setvar, 'x', value, 'a')
729 self.assertRaises(OverflowError, tk.unsetvar, value)
730 self.assertRaises(OverflowError, tk.unsetvar, 'x', value)
731 self.assertRaises(OverflowError, tk.adderrorinfo, value)
732 self.assertRaises(OverflowError, tk.exprstring, value)
733 self.assertRaises(OverflowError, tk.exprlong, value)
734 self.assertRaises(OverflowError, tk.exprboolean, value)
735 self.assertRaises(OverflowError, tk.splitlist, value)
736 self.assertRaises(OverflowError, tk.split, value)
737 self.assertRaises(OverflowError, tk.createcommand, value, max)
738 self.assertRaises(OverflowError, tk.deletecommand, value)
747 self.assertRaises(OverflowError, tk.evalfile, value)
748 self.assertRaises(OverflowError, tk.unsetvar, value)
749 self.assertRaises(OverflowError, tk.unsetvar, 'x', value)