diff options
author | Eli Bendersky <eliben@gmail.com> | 2011-07-23 08:51:14 +0300 |
---|---|---|
committer | Eli Bendersky <eliben@gmail.com> | 2011-07-23 08:51:14 +0300 |
commit | 352861c94450d5df81a43d374148cec67e86a2a9 (patch) | |
tree | 2178630163c192531860129ea012a3d705c65a05 /Lib/test/test_support.py | |
parent | 5b7e543c2291df79d966b6ceebf861bfd1e511ff (diff) | |
download | cpython-352861c94450d5df81a43d374148cec67e86a2a9.tar.gz |
fixing whitespace in the previous commit
Diffstat (limited to 'Lib/test/test_support.py')
-rw-r--r-- | Lib/test/test_support.py | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/Lib/test/test_support.py b/Lib/test/test_support.py index eace9a36dc..864090882d 100644 --- a/Lib/test/test_support.py +++ b/Lib/test/test_support.py @@ -108,19 +108,19 @@ class TestSupport(unittest.TestCase): self.assertNotIn("bar", sys.path) def test_captured_stdout(self): - with support.captured_stdout() as s: - print("hello") - self.assertEqual(s.getvalue(), "hello\n") + with support.captured_stdout() as s: + print("hello") + self.assertEqual(s.getvalue(), "hello\n") def test_captured_stderr(self): - with support.captured_stderr() as s: - print("hello", file=sys.stderr) - self.assertEqual(s.getvalue(), "hello\n") + with support.captured_stderr() as s: + print("hello", file=sys.stderr) + self.assertEqual(s.getvalue(), "hello\n") def test_captured_stdin(self): - with support.captured_stdin() as s: - print("hello", file=sys.stdin) - self.assertEqual(s.getvalue(), "hello\n") + with support.captured_stdin() as s: + print("hello", file=sys.stdin) + self.assertEqual(s.getvalue(), "hello\n") def test_gc_collect(self): support.gc_collect() @@ -175,4 +175,3 @@ def test_main(): if __name__ == '__main__': test_main() - |