New submission from Phlip phlip2...@gmail.com:
The various assertions are not DRY when they force you to repeat any automatic
diagnostic in a message string, if you provide it.
Here's an example:
def assertEqual(self, first, second, msg=None):
self.assert_((first == second), msg
R. David Murray rdmur...@bitdance.com added the comment:
You are looking for this:
http://docs.python.org/dev/py3k/library/unittest.html#unittest.TestCase.longMessage
I wish it were the default, but at least it exists in 2.7 and 3.x. (It can't be
the default for backward compatibility
Changes by Brett Cannon br...@python.org:
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7709
___
___
Python-bugs-list