Lines Matching refs:Exc
104 raise Exc()
112 class Exc(Exception): pass class
118 raise Exc()
125 self.assertRaises(Exc, d.__getitem__, x)
157 class Exc(Exception): pass class
162 raise Exc
163 self.assertRaises(Exc, d.update, FailingUserDict())
176 raise Exc
180 self.assertRaises(Exc, d.update, FailingUserDict())
197 raise Exc
198 self.assertRaises(Exc, d.update, FailingUserDict())
204 raise Exc()
206 self.assertRaises(Exc, {}.update, badseq())
234 class Exc(Exception): pass class
238 raise Exc()
240 self.assertRaises(Exc, baddict1.fromkeys, [1])
246 raise Exc()
248 self.assertRaises(Exc, dict.fromkeys, BadSeq())
252 raise Exc()
254 self.assertRaises(Exc, baddict2.fromkeys, [1])
298 class Exc(Exception): pass class
304 raise Exc()
311 self.assertRaises(Exc, d.setdefault, x, [])
385 class Exc(Exception): pass class
391 raise Exc()
398 self.assertRaises(Exc, d.pop, x)
417 class Exc(Exception): pass class
421 raise Exc()
424 self.assertRaises(Exc, repr, d)
436 class Exc(Exception): pass class
440 raise Exc()
447 with self.assertRaises(Exc):