[issue7709] the msg parameters of PyUnit assertions, such as assertEqual, should not obscure the automated diagnostics, such as '%s != %s'

2010-01-15 Thread Phlip
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

[issue7709] the msg parameters of PyUnit assertions, such as assertEqual, should not obscure the automated diagnostics, such as '%s != %s'

2010-01-15 Thread R. David Murray
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

[issue7709] the msg parameters of PyUnit assertions, such as assertEqual, should not obscure the automated diagnostics, such as '%s != %s'

2010-01-15 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7709 ___ ___ Python-bugs-list