Lines Matching refs:assertRaises
43 self.assertRaises(TypeError, _tkinter._flatten, True)
59 self.assertRaises(TclError,tcl.eval,'set a')
63 self.assertRaises(TclError,tcl.eval,'this is wrong')
72 self.assertRaises(TclError,tcl.call,'set','a')
76 self.assertRaises(TclError,tcl.call,'this','is','wrong')
100 self.assertRaises(TclError,tcl.getvar,'a')
104 self.assertRaises(TclError,tcl.getvar,'a(1)')
125 self.assertRaises(TclError,tcl.unsetvar,'a')
148 self.assertRaises(TclError, tcl.getint, str(2**1000))
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')
154 self.assertRaises((TypeError, ValueError, TclError),
158 self.assertRaises((UnicodeEncodeError, ValueError, TclError),
166 self.assertRaises(TypeError, tcl.getdouble)
167 self.assertRaises(TypeError, tcl.getdouble, '42.5', '10')
168 self.assertRaises(TypeError, tcl.getdouble, 42)
169 self.assertRaises(TclError, tcl.getdouble, 'a')
170 self.assertRaises((TypeError, ValueError, TclError),
174 self.assertRaises((UnicodeEncodeError, ValueError, TclError),
187 self.assertRaises(TypeError, tcl.getboolean)
188 self.assertRaises(TypeError, tcl.getboolean, 'on', '1')
189 self.assertRaises(TypeError, tcl.getboolean, 1.0)
190 self.assertRaises(TclError, tcl.getboolean, 'a')
191 self.assertRaises((TypeError, ValueError, TclError),
195 self.assertRaises((UnicodeEncodeError, ValueError, TclError),
233 self.assertRaises(TclError,tcl.evalfile,filename)
237 self.assertRaises(TclError,tcl.eval,'package require DNE')
285 self.assertRaises(TypeError, tcl.exprstring)
286 self.assertRaises(TypeError, tcl.exprstring, '8.2', '+6')
287 self.assertRaises(TclError, tcl.exprstring, 'spam')
319 self.assertRaises(TypeError, tcl.exprdouble)
320 self.assertRaises(TypeError, tcl.exprdouble, '8.2', '+6')
321 self.assertRaises(TclError, tcl.exprdouble, 'spam')
337 self.assertRaises(TclError, tcl.exprdouble, '"abc"')
350 self.assertRaises(TypeError, tcl.exprlong)
351 self.assertRaises(TypeError, tcl.exprlong, '8.2', '+6')
352 self.assertRaises(TclError, tcl.exprlong, 'spam')
368 self.assertRaises(TclError, tcl.exprlong, '"abc"')
370 self.assertRaises(TclError, tcl.exprlong, '2**64')
382 self.assertRaises(TypeError, tcl.exprboolean)
383 self.assertRaises(TypeError, tcl.exprboolean, '8.2', '+6')
384 self.assertRaises(TclError, tcl.exprboolean, 'spam')
408 self.assertRaises(TclError, tcl.exprboolean, '"abc"')
445 self.assertRaises(TclError, tcl.call, 'expr', str(2**1000))
541 self.assertRaises(TypeError, splitlist)
542 self.assertRaises(TypeError, splitlist, 'a', 'b')
543 self.assertRaises(TypeError, splitlist, 2)
580 self.assertRaises(TclError, splitlist, '{')
585 self.assertRaises(TypeError, split)
586 self.assertRaises(TypeError, split, 'a', 'b')
587 self.assertRaises(TypeError, split, 2)
645 self.assertRaises(RuntimeError, splitdict, tcl, '-a b -c ')
646 self.assertRaises(RuntimeError, splitdict, tcl, ('-a', 'b', '-c'))
714 self.assertRaises(OverflowError, self.interp.call, 'set', '_', value)
724 self.assertRaises(OverflowError, self.interp.call, 'set', '_', value)
746 self.assertRaises(OverflowError, tk.getint, value)
747 self.assertRaises(OverflowError, tk.getdouble, value)
748 self.assertRaises(OverflowError, tk.getboolean, value)
749 self.assertRaises(OverflowError, tk.eval, value)
750 self.assertRaises(OverflowError, tk.evalfile, value)
751 self.assertRaises(OverflowError, tk.record, value)
752 self.assertRaises(OverflowError, tk.adderrorinfo, value)
753 self.assertRaises(OverflowError, tk.setvar, value, 'x', 'a')
754 self.assertRaises(OverflowError, tk.setvar, 'x', value, 'a')
755 self.assertRaises(OverflowError, tk.unsetvar, value)
756 self.assertRaises(OverflowError, tk.unsetvar, 'x', value)
757 self.assertRaises(OverflowError, tk.exprstring, value)
758 self.assertRaises(OverflowError, tk.exprlong, value)
759 self.assertRaises(OverflowError, tk.exprboolean, value)
760 self.assertRaises(OverflowError, tk.splitlist, value)
761 self.assertRaises(OverflowError, tk.split, value)
762 self.assertRaises(OverflowError, tk.createcommand, value, max)
763 self.assertRaises(OverflowError, tk.deletecommand, value)