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 Dhara
Recipients Dhara
Date 2014-01-23.09:39:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1390469977.33.0.983072297482.issue20362@psf.upfronthosting.co.za>
In-reply-to
Content
Various assert methods added in version 2.7 ignore the longMessage attribute:
http://docs.python.org/2.7/library/unittest.html#unittest.TestCase.longMessage

For example when matching regular expressions using unittest.TestCase.assertRegexpMatches, the following error is generated:

AssertionError: <custom short message>: '<regexp>' not found in '<text>'

Since longMessage is ignored, and the text to be matched can be pages long, the error messages are impossibly long.

[See also: http://stackoverflow.com/questions/21157905/suppress-supplementary-error-message-from-unit-test]
History
Date User Action Args
2014-01-23 09:39:37Dharasetrecipients: + Dhara
2014-01-23 09:39:37Dharasetmessageid: <1390469977.33.0.983072297482.issue20362@psf.upfronthosting.co.za>
2014-01-23 09:39:37Dharalinkissue20362 messages
2014-01-23 09:39:36Dharacreate