Lines Matching refs:assertRaises
47 self.assertRaises(TypeError, _tkinter._flatten, True)
49 self.assertRaises(TypeError, _tkinter._flatten, {})
52 self.assertRaises(TypeError, _tkinter._flatten, 'string')
53 self.assertRaises(TypeError, _tkinter._flatten, {'set'})
77 self.assertRaises(TclError,tcl.eval,'set a')
81 self.assertRaises(TclError,tcl.eval,'this is wrong')
90 self.assertRaises(TclError,tcl.call,'set','a')
94 self.assertRaises(TclError,tcl.call,'this','is','wrong')
118 self.assertRaises(TclError,tcl.getvar,'a')
122 self.assertRaises(TclError,tcl.getvar,'a(1)')
143 self.assertRaises(TclError,tcl.unsetvar,'a')
166 self.assertRaises(TclError, tcl.getint, str(2**1000))
168 self.assertRaises(TypeError, tcl.getint)
169 self.assertRaises(TypeError, tcl.getint, '42', '10')
170 self.assertRaises(TypeError, tcl.getint, b'42')
171 self.assertRaises(TypeError, tcl.getint, 42.0)
172 self.assertRaises(TclError, tcl.getint, 'a')
173 self.assertRaises((TypeError, ValueError, TclError),
175 self.assertRaises((UnicodeEncodeError, ValueError, TclError),
184 self.assertRaises(TypeError, tcl.getdouble)
185 self.assertRaises(TypeError, tcl.getdouble, '42.5', '10')
186 self.assertRaises(TypeError, tcl.getdouble, b'42.5')
187 self.assertRaises(TclError, tcl.getdouble, 'a')
188 self.assertRaises((TypeError, ValueError, TclError),
190 self.assertRaises((UnicodeEncodeError, ValueError, TclError),
199 self.assertRaises(TypeError, tcl.getboolean)
200 self.assertRaises(TypeError, tcl.getboolean, 'on', '1')
201 self.assertRaises(TypeError, tcl.getboolean, b'on')
202 self.assertRaises(TypeError, tcl.getboolean, 1.0)
203 self.assertRaises(TclError, tcl.getboolean, 'a')
204 self.assertRaises((TypeError, ValueError, TclError),
206 self.assertRaises((UnicodeEncodeError, ValueError, TclError),
260 self.assertRaises(TclError,tcl.evalfile,filename)
264 self.assertRaises(TclError,tcl.eval,'package require DNE')
297 self.assertRaises(TypeError, tcl.exprstring)
298 self.assertRaises(TypeError, tcl.exprstring, '8.2', '+6')
299 self.assertRaises(TypeError, tcl.exprstring, b'8.2 + 6')
300 self.assertRaises(TclError, tcl.exprstring, 'spam')
332 self.assertRaises(TypeError, tcl.exprdouble)
333 self.assertRaises(TypeError, tcl.exprdouble, '8.2', '+6')
334 self.assertRaises(TypeError, tcl.exprdouble, b'8.2 + 6')
335 self.assertRaises(TclError, tcl.exprdouble, 'spam')
351 self.assertRaises(TclError, tcl.exprdouble, '"abc"')
364 self.assertRaises(TypeError, tcl.exprlong)
365 self.assertRaises(TypeError, tcl.exprlong, '8.2', '+6')
366 self.assertRaises(TypeError, tcl.exprlong, b'8.2 + 6')
367 self.assertRaises(TclError, tcl.exprlong, 'spam')
383 self.assertRaises(TclError, tcl.exprlong, '"abc"')
385 self.assertRaises(TclError, tcl.exprlong, '2**64')
397 self.assertRaises(TypeError, tcl.exprboolean)
398 self.assertRaises(TypeError, tcl.exprboolean, '8.2', '+6')
399 self.assertRaises(TypeError, tcl.exprboolean, b'8.2 + 6')
400 self.assertRaises(TclError, tcl.exprboolean, 'spam')
424 self.assertRaises(TclError, tcl.exprboolean, '"abc"')
459 self.assertRaises(TclError, tcl.call, 'expr', str(2**1000))
572 self.assertRaises(TypeError, splitlist)
573 self.assertRaises(TypeError, splitlist, 'a', 'b')
574 self.assertRaises(TypeError, splitlist, 2)
618 self.assertRaises(TclError, splitlist, '{')
626 self.assertRaises(TypeError, split)
627 self.assertRaises(TypeError, split, 'a', 'b')
628 self.assertRaises(TypeError, split, 2)
689 self.assertRaises(RuntimeError, splitdict, tcl, '-a b -c ')
690 self.assertRaises(RuntimeError, splitdict, tcl, ('-a', 'b', '-c'))
761 self.assertRaises(OverflowError, self.interp.call, 'string', 'index', value, 0)
769 self.assertRaises(OverflowError, tk.getint, value)
770 self.assertRaises(OverflowError, tk.getdouble, value)
771 self.assertRaises(OverflowError, tk.getboolean, value)
772 self.assertRaises(OverflowError, tk.eval, value)
773 self.assertRaises(OverflowError, tk.evalfile, value)
774 self.assertRaises(OverflowError, tk.record, value)
775 self.assertRaises(OverflowError, tk.adderrorinfo, value)
776 self.assertRaises(OverflowError, tk.setvar, value, 'x', 'a')
777 self.assertRaises(OverflowError, tk.setvar, 'x', value, 'a')
778 self.assertRaises(OverflowError, tk.unsetvar, value)
779 self.assertRaises(OverflowError, tk.unsetvar, 'x', value)
780 self.assertRaises(OverflowError, tk.adderrorinfo, value)
781 self.assertRaises(OverflowError, tk.exprstring, value)
782 self.assertRaises(OverflowError, tk.exprlong, value)
783 self.assertRaises(OverflowError, tk.exprboolean, value)
784 self.assertRaises(OverflowError, tk.splitlist, value)
785 self.assertRaises(OverflowError, tk.split, value)
786 self.assertRaises(OverflowError, tk.createcommand, value, max)
787 self.assertRaises(OverflowError, tk.deletecommand, value)
796 self.assertRaises(OverflowError, tk.evalfile, value)
797 self.assertRaises(OverflowError, tk.unsetvar, value)
798 self.assertRaises(OverflowError, tk.unsetvar, 'x', value)