'Error output only gets sent to the stream after the test has stopped.'

def test_startErrorStop(self):

    self.distReporter.startTest(self.test)
    self.assertEqual(self.stream.getvalue(), '')
    self.distReporter.addError(self.test, 'error')
    self.assertEqual(self.stream.getvalue(), '')
    self.distReporter.stopTest(self.test)
    self.assertNotEqual(self.stream.getvalue(), '')
