Lines Matching refs:Exc
109 raise Exc()
117 class Exc(Exception): pass class
123 raise Exc()
130 self.assertRaises(Exc, d.__getitem__, x)
162 class Exc(Exception): pass class
167 raise Exc
168 self.assertRaises(Exc, d.update, FailingUserDict())
181 raise Exc
185 self.assertRaises(Exc, d.update, FailingUserDict())
202 raise Exc
203 self.assertRaises(Exc, d.update, FailingUserDict())
209 raise Exc()
211 self.assertRaises(Exc, {}.update, badseq())
239 class Exc(Exception): pass class
243 raise Exc()
245 self.assertRaises(Exc, baddict1.fromkeys, [1])
251 raise Exc()
253 self.assertRaises(Exc, dict.fromkeys, BadSeq())
257 raise Exc()
259 self.assertRaises(Exc, baddict2.fromkeys, [1])
349 class Exc(Exception): pass class
355 raise Exc()
362 self.assertRaises(Exc, d.setdefault, x, [])
450 class Exc(Exception): pass class
456 raise Exc()
463 self.assertRaises(Exc, d.pop, x)
508 class Exc(Exception): pass class
512 raise Exc()
515 self.assertRaises(Exc, repr, d)
527 class Exc(Exception): pass class
531 raise Exc()
538 with self.assertRaises(Exc):
1273 class Exc(Exception): pass class
1276 raise Exc
1283 self.assertRaises(Exc, dict_getitem_knownhash, d, k2, hash(k2))