[py-svn] commit/py: gutworth: loosen this check a bit
Bitbucket
commits-noreply at bitbucket.org
Thu May 26 00:44:33 CEST 2011
1 new changeset in py:
http://bitbucket.org/hpk42/py/changeset/dac8c182956b/
changeset: r2021:dac8c182956b
user: gutworth
date: 2011-05-26 00:44:46
summary: loosen this check a bit
affected #: 1 file (9 bytes)
--- a/py/_code/code.py Wed May 25 21:55:52 2011 +0200
+++ b/py/_code/code.py Wed May 25 17:44:46 2011 -0500
@@ -310,7 +310,7 @@
# ExceptionInfo-like classes may have different attributes.
if tup is None:
tup = sys.exc_info()
- if exprinfo is None and isinstance(tup[1], py.code._AssertionError):
+ if exprinfo is None and isinstance(tup[1], AssertionError):
exprinfo = getattr(tup[1], 'msg', None)
if exprinfo is None:
exprinfo = str(tup[1])
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.
More information about the pytest-commit
mailing list