~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

  • Committer: Martin Pool
  • Date: 2009-09-15 01:52:34 UTC
  • mfrom: (4685 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4689.
  • Revision ID: mbp@sourcefrog.net-20090915015234-lbvl4euj2z353zjl
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
982
982
            return
983
983
        if message is None:
984
984
            message = "texts not equal:\n"
 
985
        if a + '\n' == b:
 
986
            message = 'first string is missing a final newline.\n'
985
987
        if a == b + '\n':
986
 
            message = 'first string is missing a final newline.\n'
987
 
        if a + '\n' == b:
988
988
            message = 'second string is missing a final newline.\n'
989
989
        raise AssertionError(message +
990
990
                             self._ndiff_strings(a, b))