summaryrefslogtreecommitdiff
path: root/tests/coveragetest.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2015-10-10 16:04:36 -0400
committerNed Batchelder <ned@nedbatchelder.com>2015-10-10 16:04:36 -0400
commitca1aa3d2a6346e3932fd90107b2303555163d0b2 (patch)
treea2a77dcc950a48444c1806b6339c1f8104f72725 /tests/coveragetest.py
parentc69d71e383de5ab90ddf475e6ddef10b9100e796 (diff)
downloadpython-coveragepy-git-ca1aa3d2a6346e3932fd90107b2303555163d0b2.tar.gz
--skip-covered shouldn't change the final result. #423.
Diffstat (limited to 'tests/coveragetest.py')
-rw-r--r--tests/coveragetest.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/coveragetest.py b/tests/coveragetest.py
index 18524758..0e9076cc 100644
--- a/tests/coveragetest.py
+++ b/tests/coveragetest.py
@@ -354,7 +354,8 @@ class CoverageTest(
Compare with `command_line`.
- Returns a pair: the process' exit status and stdout text.
+ Returns a pair: the process' exit status and stdout text, which are
+ also stored as self.last_command_status and self.last_command_output.
"""
# Add our test modules directory to PYTHONPATH. I'm sure there's too
@@ -368,9 +369,9 @@ class CoverageTest(
pypath += testmods + os.pathsep + zipfile
self.set_environ('PYTHONPATH', pypath)
- status, output = run_command(cmd)
- print(output)
- return status, output
+ self.last_command_status, self.last_command_output = run_command(cmd)
+ print(self.last_command_output)
+ return self.last_command_status, self.last_command_output
def report_from_command(self, cmd):
"""Return the report from the `cmd`, with some convenience added."""