diff options
Diffstat (limited to 'Lib/unittest/test')
-rw-r--r-- | Lib/unittest/test/test_result.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/unittest/test/test_result.py b/Lib/unittest/test/test_result.py index c483c7d..c02b8ef 100644 --- a/Lib/unittest/test/test_result.py +++ b/Lib/unittest/test/test_result.py @@ -422,8 +422,8 @@ class TestOutputBuffering(unittest.TestCase): result.addSuccess(self) result.stopTest(self) - self.assertIs(real_out, sys.stdout) - self.assertIs(real_err, sys.stderr) + self.assertIs(sys.stdout, result._original_stdout) + self.assertIs(sys.stderr, result._original_stderr) self.assertEqual(result._original_stdout.getvalue(), '') self.assertEqual(result._original_stderr.getvalue(), '') |