'Check whether the XMLTestRunner recovers gracefully from unit tests
that change stderr, but don\'t change it back properly.'

def test_unittests_changing_stderr(self):

    class TestTest(unittest.TestCase, ):
        def test_foo(self):
            sys.stderr = XMLTestRunnerTest.NullStream()
    runner = XMLTestRunner(self._stream)
    runner.run(unittest.makeSuite(TestTest))
