/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: Martin Pool
  • Date: 2009-09-03 02:59:56 UTC
  • mto: (4634.27.1 prepare-2.0)
  • mto: This revision was merged to the branch mainline in revision 4676.
  • Revision ID: mbp@sourcefrog.net-20090903025956-mil2ouu0ys9ytbjj
Cleaner message when out of memory

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')