summaryrefslogtreecommitdiff
path: root/Lib/test/test_subprocess.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2014-05-09 00:31:32 +0200
committerAntoine Pitrou <solipsis@pitrou.net>2014-05-09 00:31:32 +0200
commit38ca5a7b6d7744cae586c824159d1a4be791cd89 (patch)
treee2671a465d02bfd41d95b29a0cef62db05212590 /Lib/test/test_subprocess.py
parentd30b022b5ea1b73595b330d9d4aba36aa0ebdd29 (diff)
parentc644e7c39f7adf0ed783e128b0278665133bf523 (diff)
downloadcpython-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.py1
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()