52
52
def test_format_interrupt_exception(self):
54
54
raise KeyboardInterrupt()
56
56
# XXX: Some risk that a *real* keyboard interrupt won't be seen
58
58
msg = _format_exception()
59
59
self.assertTrue(len(msg) > 0)
60
60
self.assertEqualDiff(msg, 'bzr: interrupted\n')
62
71
def test_format_exception(self):
63
72
"""Short formatting of bzr exceptions"""