'Even if there is no test, the suite can contain an error (most likely,
an import error): this should make the run fail, and the error should
be printed.'

def test_runWithoutTestButWithAnError(self):

    fakeReactor = object()
    error = ErrorHolder('an    error', Failure(RuntimeError('foo    bar')))
    result = self.runner.run(error, fakeReactor)
    self.assertIsInstance(result, DistReporter)
    output = self.runner._stream.getvalue()
    self.assertIn('Running    0    test', output)
    self.assertIn('foo    bar', output)
    self.assertIn('an    error', output)
    self.assertIn('errors=1', output)
    self.assertIn('FAILED', output)
