summaryrefslogtreecommitdiffstats
path: root/Lib/subprocess.py
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2013-03-20 06:25:16 (GMT)
committerGregory P. Smith <greg@krypto.org>2013-03-20 06:25:16 (GMT)
commit91110f5e5523b578cb74bf81473eb858f86e5338 (patch)
treeb6d4a42fc1bc2c173e7d9e0d6f0cb4d827150da6 /Lib/subprocess.py
parent620e875df20f9a62bad11f9e2ac249244be21875 (diff)
downloadcpython-91110f5e5523b578cb74bf81473eb858f86e5338.zip
cpython-91110f5e5523b578cb74bf81473eb858f86e5338.tar.gz
cpython-91110f5e5523b578cb74bf81473eb858f86e5338.tar.bz2
Use a larger amount of data for tests such as the interrupted_write
tests that depend on filling up an OS pipe so that they work properly on systems configured with large pipe buffers.
Diffstat (limited to 'Lib/subprocess.py')
-rw-r--r--Lib/subprocess.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/Lib/subprocess.py b/Lib/subprocess.py
index aa3e217..e01cbd7 100644
--- a/Lib/subprocess.py
+++ b/Lib/subprocess.py
@@ -166,7 +166,7 @@ getoutput(cmd):
'/bin/ls'
check_output(*popenargs, **kwargs):
- Run command with arguments and return its output as a byte string.
+ Run command with arguments and return its output.
If the exit code was non-zero it raises a CalledProcessError. The
CalledProcessError object will have the return code in the returncode
@@ -547,7 +547,7 @@ def check_call(*popenargs, **kwargs):
def check_output(*popenargs, timeout=None, **kwargs):
- r"""Run command with arguments and return its output as a byte string.
+ r"""Run command with arguments and return its output.
If the exit code was non-zero it raises a CalledProcessError. The
CalledProcessError object will have the return code in the returncode
@@ -565,6 +565,9 @@ def check_output(*popenargs, timeout=None, **kwargs):
... "ls -l non_existent_file ; exit 0"],
... stderr=STDOUT)
b'ls: non_existent_file: No such file or directory\n'
+
+ If universal_newlines=True is passed, the return value will be a
+ string rather than bytes.
"""
if 'stdout' in kwargs:
raise ValueError('stdout argument not allowed, it will be overridden.')