/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_trace.py

  • Committer: Robert Collins
  • Date: 2009-09-07 03:35:06 UTC
  • mfrom: (4634.6.24 2.0)
  • mto: This revision was merged to the branch mainline in revision 4676.
  • Revision ID: robertc@robertcollins.net-20090907033506-2voaobfg5n4yxyjr
MergeĀ 2.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
72
72
        self.assertTrue(len(msg) > 0)
73
73
        self.assertEqualDiff(msg, 'bzr: interrupted\n')
74
74
 
 
75
    def test_format_memory_error(self):
 
76
        try:
 
77
            raise MemoryError()
 
78
        except MemoryError:
 
79
            pass
 
80
        msg = _format_exception()
 
81
        self.assertEquals(msg,
 
82
            "bzr: out of memory\n")
 
83
 
75
84
    def test_format_os_error(self):
76
85
        try:
77
86
            os.rmdir('nosuchfile22222')