~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

  • Committer: Patch Queue Manager
  • Date: 2016-01-15 09:21:49 UTC
  • mfrom: (6606.2.1 autodoc-unicode)
  • Revision ID: pqm@pqm.ubuntu.com-20160115092149-z5f4sfq3jvaz0enb
(vila) Fix autodoc runner when LANG=C. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005-2013, 2015, 2016 Canonical Ltd
 
1
# Copyright (C) 2005-2011 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
1369
1369
            % (message,
1370
1370
               pprint.pformat(a), pprint.pformat(b)))
1371
1371
 
1372
 
    # FIXME: This is deprecated in unittest2 but plugins may still use it so we
1373
 
    # need a deprecation period for them -- vila 2016-02-01
1374
1372
    assertEquals = assertEqual
1375
1373
 
1376
1374
    def assertEqualDiff(self, a, b, message=None):
1379
1377
        This is intended for use with multi-line strings where it can
1380
1378
        be hard to find the differences by eye.
1381
1379
        """
1382
 
        # TODO: perhaps override assertEqual to call this for strings?
 
1380
        # TODO: perhaps override assertEquals to call this for strings?
1383
1381
        if a == b:
1384
1382
            return
1385
1383
        if message is None:
2052
2050
        if err:
2053
2051
            self.log('errors:\n%r', err)
2054
2052
        if retcode is not None:
2055
 
            self.assertEqual(retcode, result,
 
2053
            self.assertEquals(retcode, result,
2056
2054
                              message='Unexpected return code')
2057
2055
        return result, out, err
2058
2056