diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2015-04-03 15:13:23 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-04-03 15:13:23 (GMT) |
commit | 50ef0f41afd313ed3c433f724e6aaa79d7e55c02 (patch) | |
tree | e33b1fe0c2fb07b6b65b7ad5f5c0e56adce7c465 /Lib/test/support | |
parent | 32ed7509523517a3737e45123609048c75440591 (diff) | |
parent | 9f8a8910a415e31808debe6e9fed7f7c3638d42a (diff) | |
download | cpython-50ef0f41afd313ed3c433f724e6aaa79d7e55c02.zip cpython-50ef0f41afd313ed3c433f724e6aaa79d7e55c02.tar.gz cpython-50ef0f41afd313ed3c433f724e6aaa79d7e55c02.tar.bz2 |
Escaped backslashes in docstrings.
Diffstat (limited to 'Lib/test/support')
-rw-r--r-- | Lib/test/support/__init__.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/support/__init__.py b/Lib/test/support/__init__.py index 82321af..78d386f 100644 --- a/Lib/test/support/__init__.py +++ b/Lib/test/support/__init__.py @@ -1380,7 +1380,7 @@ def captured_stdout(): with captured_stdout() as stdout: print("hello") - self.assertEqual(stdout.getvalue(), "hello\n") + self.assertEqual(stdout.getvalue(), "hello\\n") """ return captured_output("stdout") @@ -1389,7 +1389,7 @@ def captured_stderr(): with captured_stderr() as stderr: print("hello", file=sys.stderr) - self.assertEqual(stderr.getvalue(), "hello\n") + self.assertEqual(stderr.getvalue(), "hello\\n") """ return captured_output("stderr") @@ -1397,7 +1397,7 @@ def captured_stdin(): """Capture the input to sys.stdin: with captured_stdin() as stdin: - stdin.write('hello\n') + stdin.write('hello\\n') stdin.seek(0) # call test code that consumes from sys.stdin captured = input() |