Rev 4682: Blessed be the tests that protect the imprudent :) in file:///home/vila/src/bzr/bugs/assert-equal-diff/
Vincent Ladeuil
v.ladeuil+lp at free.fr
Wed Sep 9 18:21:56 BST 2009
At file:///home/vila/src/bzr/bugs/assert-equal-diff/
------------------------------------------------------------
revno: 4682
revision-id: v.ladeuil+lp at free.fr-20090909172156-rzqanr0r7da50r4t
parent: v.ladeuil+lp at free.fr-20090909152748-vf90nnjybnp84zn2
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: assert-equal-diff
timestamp: Wed 2009-09-09 19:21:56 +0200
message:
Blessed be the tests that protect the imprudent :)
* bzrlib/tests/__init__.py:
(TestCase.assertEqualDiff): Modifying already *tested* code to
prettify a patch doesn't imply we should introduce bugs :)
-------------- next part --------------
=== modified file 'bzrlib/tests/__init__.py'
--- a/bzrlib/tests/__init__.py 2009-09-09 15:27:48 +0000
+++ b/bzrlib/tests/__init__.py 2009-09-09 17:21:56 +0000
@@ -985,7 +985,7 @@
if a + '\n' == b:
message = 'first string is missing a final newline.\n'
if a == b + '\n':
- message = 'first string is missing a final newline.\n'
+ message = 'second string is missing a final newline.\n'
raise AssertionError(message +
self._ndiff_strings(a, b))
More information about the bazaar-commits
mailing list