summaryrefslogtreecommitdiff
path: root/Lib/test/test_subprocess.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2014-05-09 00:24:50 +0200
committerAntoine Pitrou <solipsis@pitrou.net>2014-05-09 00:24:50 +0200
commitc644e7c39f7adf0ed783e128b0278665133bf523 (patch)
tree85a2c3c546b5b9f3c189ef45d4c6b5b932af7d60 /Lib/test/test_subprocess.py
parenta83ade1d60a18d7cf2f96f9e059947a770c491ee (diff)
downloadcpython-git-c644e7c39f7adf0ed783e128b0278665133bf523.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()