diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2014-05-09 00:31:32 +0200 |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2014-05-09 00:31:32 +0200 |
commit | 38ca5a7b6d7744cae586c824159d1a4be791cd89 (patch) | |
tree | e2671a465d02bfd41d95b29a0cef62db05212590 /Lib/test/test_subprocess.py | |
parent | d30b022b5ea1b73595b330d9d4aba36aa0ebdd29 (diff) | |
parent | c644e7c39f7adf0ed783e128b0278665133bf523 (diff) | |
download | cpython-git-38ca5a7b6d7744cae586c824159d1a4be791cd89.tar.gz |
Issue #21396: Fix TextIOWrapper(..., write_through=True) to not force a flush() on the underlying binary stream.
Patch by akira.
Diffstat (limited to 'Lib/test/test_subprocess.py')
-rw-r--r-- | Lib/test/test_subprocess.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py index 4c8d493732..32ffb5fa4b 100644 --- a/Lib/test/test_subprocess.py +++ b/Lib/test/test_subprocess.py @@ -786,6 +786,7 @@ class ProcessTestCase(BaseTestCase): stdout=subprocess.PIPE, universal_newlines=1) p.stdin.write("line1\n") + p.stdin.flush() self.assertEqual(p.stdout.readline(), "line1\n") p.stdin.write("line3\n") p.stdin.close() |