| 10 |
| 11 |
| 12 |
| 13 |
| 14 |
| 15 |
| 16 |
| 17 |
| 18 |
| 19 |
| 20 |
| 21 |
| 22 | |
def __init__(self, tup=None, exprinfo=None): |
|
|
if tup is None: |
tup = sys.exc_info() |
if exprinfo is None and isinstance(tup[1], py.magic.AssertionError): |
exprinfo = tup[1].msg |
if exprinfo and exprinfo.startswith('assert '): |
self._striptext = 'AssertionError: ' |
self._excinfo = tup |
self.type, self.value, tb = self._excinfo |
self.typename = str(self.type) |
-> self.traceback = py.code.Traceback(tb) | |