Lines Matching refs:Exc
161 raise Exc()
169 class Exc(Exception): pass class
175 raise Exc()
182 self.assertRaises(Exc, d.__getitem__, x)
214 class Exc(Exception): pass class
219 raise Exc
220 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())
261 raise Exc()
263 self.assertRaises(Exc, {}.update, badseq())
291 class Exc(Exception): pass class
295 raise Exc()
297 self.assertRaises(Exc, baddict1.fromkeys, [1])
303 raise Exc()
305 self.assertRaises(Exc, dict.fromkeys, BadSeq())
309 raise Exc()
311 self.assertRaises(Exc, baddict2.fromkeys, [1])
401 class Exc(Exception): pass class
407 raise Exc()
414 self.assertRaises(Exc, d.setdefault, x, [])
502 class Exc(Exception): pass class
508 raise Exc()
515 self.assertRaises(Exc, d.pop, x)
587 class Exc(Exception): pass class
591 raise Exc()
594 self.assertRaises(Exc, repr, d)
606 class Exc(Exception): pass class
610 raise Exc()
617 with self.assertRaises(Exc):
1592 class Exc(Exception): pass class
1595 raise Exc
1602 self.assertRaises(Exc, dict_getitem_knownhash, d, k2, hash(k2))