[svn r45535] Avoid hacks when creating exception name
--HG-- branch : trunk
This commit is contained in:
parent
11e2b9426f
commit
31fe9347e5
|
@ -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):
|
||||||
|
|
Loading…
Reference in New Issue