48
48
self.assertRaises(AssertionError, t.return_value)
49
49
self.assertTrue(t.exc_info()[0] == ZeroDivisionError)
50
50
exc = traceback.format_exception(t.exc_info()[0], t.exc_info()[1],
52
52
self.assertTrue(exc[-1].startswith('ZeroDivisionError'), 'not a ZeroDivisionError:' + str(exc))
53
53
self.assertTrue(exc[-2].endswith('return x / y\n'))