]> granicus.if.org Git - python/commitdiff
fixing whitespace in the previous commit
authorEli Bendersky <eliben@gmail.com>
Sat, 23 Jul 2011 05:51:14 +0000 (08:51 +0300)
committerEli Bendersky <eliben@gmail.com>
Sat, 23 Jul 2011 05:51:14 +0000 (08:51 +0300)
Lib/test/test_support.py

index eace9a36dc16aa2018b013c32375e46adc6a7575..864090882db6cdcf577b651275c930f860146104 100644 (file)
@@ -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()
-