[svn r45535] Avoid hacks when creating exception name

--HG--
branch : trunk
This commit is contained in:
fijal 2007-08-07 18:19:35 +02:00
parent 11e2b9426f
commit 31fe9347e5
1 changed files with 1 additions and 4 deletions

View File

@ -18,10 +18,7 @@ class ExceptionInfo(object):
self._striptext = 'AssertionError: ' self._striptext = 'AssertionError: '
self._excinfo = tup self._excinfo = tup
self.type, self.value, tb = self._excinfo self.type, self.value, tb = self._excinfo
self.typename = str(self.type) self.typename = self.type.__module__ + '.' + self.type.__name__
if issubclass(self.type, object):
# cpy 2.5
self.typename = self.typename[7:-2]
self.traceback = py.code.Traceback(tb) self.traceback = py.code.Traceback(tb)
def exconly(self, tryshort=False): def exconly(self, tryshort=False):