Lines Matching refs:Exc
212 class Exc(Exception): pass class
217 raise Exc
218 self.assertRaises(Exc, d.update, FailingUserDict())
233 raise Exc
237 self.assertRaises(Exc, d.update, FailingUserDict())
254 raise Exc
255 self.assertRaises(Exc, d.update, FailingUserDict())
262 raise Exc()
264 self.assertRaises(Exc, d.update, badseq())
448 class Exc(Exception): pass class
452 raise Exc()
454 self.assertRaises(Exc, baddict1.fromkeys, [1])
460 raise Exc()
462 self.assertRaises(Exc, self.type2test.fromkeys, BadSeq())
466 raise Exc()
468 self.assertRaises(Exc, baddict2.fromkeys, [1])
540 class Exc(Exception): pass class
544 raise Exc()
556 raise Exc()
564 self.assertRaises(Exc, d.__getitem__, x)
578 class Exc(Exception): pass class
584 raise Exc()
592 self.assertRaises(Exc, d.pop, x)
614 class Exc(Exception): pass class
618 raise Exc()
621 self.assertRaises(Exc, repr, d)
636 class Exc(Exception): pass class
640 raise Exc()
646 self.assertRaises(Exc, lambda: BadCmp()==1)
647 self.assertRaises(Exc, lambda: d1==d2)
652 class Exc(Exception): pass class
658 raise Exc()
666 self.assertRaises(Exc, d.setdefault, x, [])