1 new commit in py: https://bitbucket.org/hpk42/py/commits/b4230dbdd9b5/ Changeset: b4230dbdd9b5 User: hpk42 Date: 2014-01-23 12:11:57 Summary: document ExceptionInfo members Affected #: 2 files
diff -r 13d9af95547ea14b2e33e2994ff96e182da225c4 -r b4230dbdd9b5127a320fd1caa9861ca1577e0d98 doc/code.txt --- a/doc/code.txt +++ b/doc/code.txt @@ -145,3 +145,6 @@ .. autoclass:: py.code.ExceptionInfo :members: +.. autoclass:: py.code.Traceback + :members: + diff -r 13d9af95547ea14b2e33e2994ff96e182da225c4 -r b4230dbdd9b5127a320fd1caa9861ca1577e0d98 py/_code/code.py --- a/py/_code/code.py +++ b/py/_code/code.py @@ -347,9 +347,16 @@ if exprinfo and exprinfo.startswith('assert '): self._striptext = 'AssertionError: ' self._excinfo = tup - self.type, self.value, tb = tup + #: the exception class + self.type = tup[0] + #: the exception instance + self.value = tup[1] + #: the exception raw traceback + self.tb = tup[2] + #: the exception type name self.typename = self.type.__name__ - self.traceback = py.code.Traceback(tb) + #: the exception traceback (py.code.Traceback instance) + self.traceback = py.code.Traceback(self.tb) def __repr__(self): return "<ExceptionInfo %s tblen=%d>" % (self.typename, len(self.traceback)) Repository URL: https://bitbucket.org/hpk42/py/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email. _______________________________________________ pytest-commit mailing list pytest-commit@python.org https://mail.python.org/mailman/listinfo/pytest-commit