diff options
| author | Ned Batchelder <ned@nedbatchelder.com> | 2014-06-03 22:09:58 -0400 |
|---|---|---|
| committer | Ned Batchelder <ned@nedbatchelder.com> | 2014-06-03 22:09:58 -0400 |
| commit | cc2b678e7452395e58e3df43116b06c3410bec06 (patch) | |
| tree | 026b8754fac71ac4a50d112ff566de0ab356b506 /tests/coveragetest.py | |
| parent | dfe2fa5e5db2cf29a1b43b0abf61be3b545db270 (diff) | |
| download | python-coveragepy-git-cc2b678e7452395e58e3df43116b06c3410bec06.tar.gz | |
Remove old stuff for old Pythons
Diffstat (limited to 'tests/coveragetest.py')
| -rw-r--r-- | tests/coveragetest.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/coveragetest.py b/tests/coveragetest.py index fa55dec3..0171ec14 100644 --- a/tests/coveragetest.py +++ b/tests/coveragetest.py @@ -458,7 +458,7 @@ class CoverageTest(TestCase): _, output = self.run_command_status(cmd) return output - def run_command_status(self, cmd, status=0): + def run_command_status(self, cmd): """Run the command-line `cmd` in a subprocess, and print its output. Use this when you need to test the process behavior of coverage. @@ -467,9 +467,6 @@ class CoverageTest(TestCase): Returns a pair: the process' exit status and stdout text. - The `status` argument is returned as the status on older Pythons where - we can't get the actual exit status of the process. - """ # Add our test modules directory to PYTHONPATH. I'm sure there's too # much path munging here, but... @@ -482,7 +479,7 @@ class CoverageTest(TestCase): pypath += testmods + os.pathsep + zipfile self.set_environ('PYTHONPATH', pypath) - status, output = run_command(cmd, status=status) + status, output = run_command(cmd) print(output) return status, output |
