summaryrefslogtreecommitdiff
path: root/test/backtest.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2009-12-02 07:27:14 -0500
committerNed Batchelder <ned@nedbatchelder.com>2009-12-02 07:27:14 -0500
commit968fc008e4c0453ef05aa211e85e202e7b1d2342 (patch)
tree91ae38367181a9ee0dda9ed22aa832031ca4c3d7 /test/backtest.py
parent007a4a1ba529e2913357387c1f42b6028860fe98 (diff)
downloadpython-coveragepy-git-968fc008e4c0453ef05aa211e85e202e7b1d2342.tar.gz
Massive eol whitespace clean-up.
Diffstat (limited to 'test/backtest.py')
-rw-r--r--test/backtest.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/backtest.py b/test/backtest.py
index 21a14d6d..12bdbc97 100644
--- a/test/backtest.py
+++ b/test/backtest.py
@@ -12,18 +12,18 @@ try:
except ImportError:
def run_command(cmd):
"""Run a command in a subprocess.
-
+
Returns the exit code and the combined stdout and stderr.
-
+
"""
_, stdouterr = os.popen4(cmd)
return 0, stdouterr.read()
else:
def run_command(cmd):
"""Run a command in a subprocess.
-
+
Returns the exit code and the combined stdout and stderr.
-
+
"""
if sys.hexversion > 0x03000000 and cmd.startswith("coverage "):
@@ -36,13 +36,13 @@ else:
stderr=subprocess.STDOUT
)
retcode = proc.wait()
-
+
# Get the output, and canonicalize it to strings with newlines.
output = proc.stdout.read()
if not isinstance(output, str):
output = output.decode('utf-8')
output = output.replace('\r', '')
-
+
return retcode, output
# No more execfile in Py3k