summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_support.py
diff options
context:
space:
mode:
authorEli Bendersky <eliben@gmail.com>2011-07-23 05:51:14 (GMT)
committerEli Bendersky <eliben@gmail.com>2011-07-23 05:51:14 (GMT)
commitd11c3e32c52e3348fe509abb63287f7b195b2de5 (patch)
tree9d440ad8381c786fe6af90bbdfb09738af608c9f /Lib/test/test_support.py
parent6c51999221ef92002769228bd2bc80066c60f357 (diff)
downloadcpython-d11c3e32c52e3348fe509abb63287f7b195b2de5.zip
cpython-d11c3e32c52e3348fe509abb63287f7b195b2de5.tar.gz
cpython-d11c3e32c52e3348fe509abb63287f7b195b2de5.tar.bz2
fixing whitespace in the previous commit
Diffstat (limited to 'Lib/test/test_support.py')
-rw-r--r--Lib/test/test_support.py19
1 files changed, 9 insertions, 10 deletions
diff --git a/Lib/test/test_support.py b/Lib/test/test_support.py
index eace9a3..8640908 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()
-