diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2014-06-03 21:41:12 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2014-06-03 21:41:12 -0400 |
commit | dfe2fa5e5db2cf29a1b43b0abf61be3b545db270 (patch) | |
tree | b9309998f9699848654101ed2d27d00e11211a27 /tests/test_summary.py | |
parent | 8b5e0c98a9bae35595e4ca0497fd0e57c3c37827 (diff) | |
download | python-coveragepy-git-dfe2fa5e5db2cf29a1b43b0abf61be3b545db270.tar.gz |
Round fail-under result same as others. Fixed #284.
Diffstat (limited to 'tests/test_summary.py')
-rw-r--r-- | tests/test_summary.py | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/tests/test_summary.py b/tests/test_summary.py index 2612fe36..336a2af3 100644 --- a/tests/test_summary.py +++ b/tests/test_summary.py @@ -21,22 +21,6 @@ class SummaryTest(CoverageTest): # Parent class saves and restores sys.path, we can just modify it. sys.path.append(self.nice_file(os.path.dirname(__file__), 'modules')) - def report_from_command(self, cmd): - """Return the report from the `cmd`, with some convenience added.""" - report = self.run_command(cmd).replace('\\', '/') - self.assertNotIn("error", report.lower()) - return report - - def line_count(self, report): - """How many lines are in `report`?""" - self.assertEqual(report.split('\n')[-1], "") - return len(report.split('\n')) - 1 - - def last_line_squeezed(self, report): - """Return the last line of `report` with the spaces squeezed down.""" - last_line = report.split('\n')[-2] - return re.sub(r"\s+", " ", last_line) - def test_report(self): out = self.run_command("coverage run mycode.py") self.assertEqual(out, 'done\n') |