This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author denversc
Recipients denversc, kristjan.jonsson, michael.foord
Date 2010-08-15.18:53:37
SpamBayes Score 1.3989427e-09
Marked as misclassified No
Message-id <1281898420.46.0.309705012432.issue9587@psf.upfronthosting.co.za>
In-reply-to
Content
Michael: Do you disagree with assertRaises() returning the exception object on principle?  Or is this just the consensus that you got from the mailing list, including Guido's comment.  My particular use case is that I want to check certain attributes being set on the raised exception and I feel that the context manager approach is overkill for my tests since it's just one method call in the context manager.  I don't understand why it is considered "odd" for assertRaises() to return the result for further inspection... I need to get it some way and assertRaises() has a reference to it.  Thanks for considering this request further.
History
Date User Action Args
2010-08-15 18:53:40denverscsetrecipients: + denversc, kristjan.jonsson, michael.foord
2010-08-15 18:53:40denverscsetmessageid: <1281898420.46.0.309705012432.issue9587@psf.upfronthosting.co.za>
2010-08-15 18:53:37denversclinkissue9587 messages
2010-08-15 18:53:37denversccreate