Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d11c3e3

Browse files
committed
fixing whitespace in the previous commit
1 parent 6c51999 commit d11c3e3

1 file changed

Lines changed: 9 additions & 10 deletions

File tree

Lib/test/test_support.py

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -108,19 +108,19 @@ def test_DirsOnSysPath(self):
108108
self.assertNotIn("bar", sys.path)
109109

110110
def test_captured_stdout(self):
111-
with support.captured_stdout() as s:
112-
print("hello")
113-
self.assertEqual(s.getvalue(), "hello\n")
111+
with support.captured_stdout() as s:
112+
print("hello")
113+
self.assertEqual(s.getvalue(), "hello\n")
114114

115115
def test_captured_stderr(self):
116-
with support.captured_stderr() as s:
117-
print("hello", file=sys.stderr)
118-
self.assertEqual(s.getvalue(), "hello\n")
116+
with support.captured_stderr() as s:
117+
print("hello", file=sys.stderr)
118+
self.assertEqual(s.getvalue(), "hello\n")
119119

120120
def test_captured_stdin(self):
121-
with support.captured_stdin() as s:
122-
print("hello", file=sys.stdin)
123-
self.assertEqual(s.getvalue(), "hello\n")
121+
with support.captured_stdin() as s:
122+
print("hello", file=sys.stdin)
123+
self.assertEqual(s.getvalue(), "hello\n")
124124

125125
def test_gc_collect(self):
126126
support.gc_collect()
@@ -175,4 +175,3 @@ def test_main():
175175

176176
if __name__ == '__main__':
177177
test_main()
178-

0 commit comments

Comments
 (0)