Lines Matching refs:Exc
221 class Exc(Exception): pass class
226 raise Exc
227 self.assertRaises(Exc, d.update, FailingUserDict())
242 raise Exc
246 self.assertRaises(Exc, d.update, FailingUserDict())
263 raise Exc
264 self.assertRaises(Exc, d.update, FailingUserDict())
271 raise Exc()
273 self.assertRaises(Exc, d.update, badseq())
467 class Exc(Exception): pass class
471 raise Exc()
473 self.assertRaises(Exc, baddict1.fromkeys, [1])
479 raise Exc()
481 self.assertRaises(Exc, self.type2test.fromkeys, BadSeq())
485 raise Exc()
487 self.assertRaises(Exc, baddict2.fromkeys, [1])
566 class Exc(Exception): pass class
570 raise Exc()
582 raise Exc()
590 self.assertRaises(Exc, d.__getitem__, x)
604 class Exc(Exception): pass class
610 raise Exc()
618 self.assertRaises(Exc, d.pop, x)
640 class Exc(Exception): pass class
644 raise Exc()
647 self.assertRaises(Exc, repr, d)
661 class Exc(Exception): pass class
665 raise Exc()
673 except Exc:
681 class Exc(Exception): pass class
687 raise Exc()
695 self.assertRaises(Exc, d.setdefault, x, [])