Lines Matching refs:Exc
103 raise Exc()
111 class Exc(Exception): pass class
117 raise Exc()
124 self.assertRaises(Exc, d.__getitem__, x)
156 class Exc(Exception): pass class
161 raise Exc
162 self.assertRaises(Exc, d.update, FailingUserDict())
175 raise Exc
179 self.assertRaises(Exc, d.update, FailingUserDict())
196 raise Exc
197 self.assertRaises(Exc, d.update, FailingUserDict())
203 raise Exc()
205 self.assertRaises(Exc, {}.update, badseq())
233 class Exc(Exception): pass class
237 raise Exc()
239 self.assertRaises(Exc, baddict1.fromkeys, [1])
245 raise Exc()
247 self.assertRaises(Exc, dict.fromkeys, BadSeq())
251 raise Exc()
253 self.assertRaises(Exc, baddict2.fromkeys, [1])
297 class Exc(Exception): pass class
303 raise Exc()
310 self.assertRaises(Exc, d.setdefault, x, [])
384 class Exc(Exception): pass class
390 raise Exc()
397 self.assertRaises(Exc, d.pop, x)
416 class Exc(Exception): pass class
420 raise Exc()
423 self.assertRaises(Exc, repr, d)
429 class Exc(Exception): pass class
433 raise Exc()
440 with self.assertRaises(Exc):