Lines Matching refs:exceptions

41         MSG = r'second argument \(exceptions\) must be a sequence'
47 MSG = r'second argument \(exceptions\) must be a non-empty sequence'
52 MSG = (r'Item [0-9]+ of second argument \(exceptions\)'
138 self.assertEqual(str(eg), "flat (2 sub-exceptions)")
145 self.assertEqual(str(eg), "nested (4 sub-exceptions)")
158 self.assertEqual(str(eg), "flat (2 sub-exceptions)")
167 self.assertEqual(str(eg), "nested (3 sub-exceptions)")
183 self.assertEqual(str(eg), "flat (2 sub-exceptions)")
189 self.assertEqual(str(eg), "nested (4 sub-exceptions)")
239 self.assertIsInstance(eg.exceptions[0], ValueError)
240 self.assertIsInstance(eg.exceptions[0].__cause__, MemoryError)
241 self.assertIsInstance(eg.exceptions[0].__context__, MemoryError)
242 self.assertIsInstance(eg.exceptions[1], TypeError)
243 self.assertIsNone(eg.exceptions[1].__cause__)
244 self.assertIsInstance(eg.exceptions[1].__context__, OSError)
245 self.assertIsInstance(eg.exceptions[2], ValueError)
246 self.assertIsNone(eg.exceptions[2].__cause__)
247 self.assertIsInstance(eg.exceptions[2].__context__, ImportError)
256 tb = eg.exceptions[i].__traceback__
263 self.assertEqual(type(eg.exceptions), tuple)
269 eg.exceptions
271 eg.exceptions = [OSError('xyz')]
283 templates of its nested exceptions.
290 self.assertEqual(len(exc.exceptions), len(template))
291 for e, t in zip(exc.exceptions, template):
457 for e in exc.exceptions:
477 eg.exceptions)
518 self.assertIsInstance(eg.exceptions[1].__context__, MemoryError)
519 self.assertIsInstance(eg.exceptions[1].__cause__, MemoryError)
520 self.assertIsInstance(eg.exceptions[0].__context__, TypeError)
528 (eg.exceptions[0].__traceback__, line0 + 6),
529 (eg.exceptions[1].__traceback__, line0 + 14),
530 (eg.exceptions[0].exceptions[0].__traceback__, line0 + 4),
908 self.assertEqual(rest.exceptions[1].code, 101)
914 self.assertEqual(match.exceptions[1].code, 101)
923 self.assertEqual(rest.exceptions[0].code, 101)
929 self.assertEqual(match.exceptions[0].code, 101)