[Python-checkins] cpython: fixing whitespace in the previous commit

eli.bendersky python-checkins at python.org
Sat Jul 23 07:51:39 CEST 2011


http://hg.python.org/cpython/rev/e9d0503a2113
changeset:   71466:e9d0503a2113
user:        Eli Bendersky <eliben at gmail.com>
date:        Sat Jul 23 08:51:14 2011 +0300
summary:
  fixing whitespace in the previous commit

files:
  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
--- a/Lib/test/test_support.py
+++ b/Lib/test/test_support.py
@@ -108,19 +108,19 @@
         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 @@
 
 if __name__ == '__main__':
     test_main()
-

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list