~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_trace.py

  • Committer: Vincent Ladeuil
  • Date: 2016-02-01 18:09:18 UTC
  • mfrom: (6614.1.3 assert)
  • mto: This revision was merged to the branch mainline in revision 6615.
  • Revision ID: v.ladeuil+lp@free.fr-20160201180918-jqtq8ol6gdbbbtpv
Fix deprecated assertions to unblock release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005-2011 Canonical Ltd
 
1
# Copyright (C) 2005-2011, 2016 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
82
82
        except MemoryError:
83
83
            pass
84
84
        msg = _format_exception()
85
 
        self.assertEquals(msg,
 
85
        self.assertEqual(msg,
86
86
            "bzr: out of memory\nUse -Dmem_dump to dump memory to a file.\n")
87
87
 
88
88
    def test_format_mem_dump(self):
204
204
    def test_report_broken_pipe(self):
205
205
        try:
206
206
            raise IOError(errno.EPIPE, 'broken pipe foofofo')
207
 
        except IOError, e:
 
207
        except IOError as e:
208
208
            msg = _format_exception()
209
 
            self.assertEquals(msg, "bzr: broken pipe\n")
 
209
            self.assertEqual(msg, "bzr: broken pipe\n")
210
210
        else:
211
211
            self.fail("expected error not raised")
212
212