Lines Matching refs:Exc
220 class Exc(Exception): pass class
225 raise Exc
226 self.assertRaises(Exc, d.update, FailingUserDict())
241 raise Exc
245 self.assertRaises(Exc, d.update, FailingUserDict())
262 raise Exc
263 self.assertRaises(Exc, d.update, FailingUserDict())
270 raise Exc()
272 self.assertRaises(Exc, d.update, badseq())
466 class Exc(Exception): pass class
470 raise Exc()
472 self.assertRaises(Exc, baddict1.fromkeys, [1])
478 raise Exc()
480 self.assertRaises(Exc, self.type2test.fromkeys, BadSeq())
484 raise Exc()
486 self.assertRaises(Exc, baddict2.fromkeys, [1])
565 class Exc(Exception): pass class
569 raise Exc()
581 raise Exc()
589 self.assertRaises(Exc, d.__getitem__, x)
603 class Exc(Exception): pass class
609 raise Exc()
617 self.assertRaises(Exc, d.pop, x)
639 class Exc(Exception): pass class
643 raise Exc()
646 self.assertRaises(Exc, repr, d)
652 class Exc(Exception): pass class
656 raise Exc()
664 except Exc:
672 class Exc(Exception): pass class
678 raise Exc()
686 self.assertRaises(Exc, d.setdefault, x, [])