diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2016-04-18 17:33:03 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2016-04-18 17:33:03 -0400 |
commit | ca8180e4551855364e11b1a1788ac6ef287e3d0e (patch) | |
tree | 05b6a7867e4e987d5e3140e1904b8fbe600e2aac /tests/test_summary.py | |
parent | 8a14ec4b58b2bfbe4e7f62a1c5cfc4e476aa84dd (diff) | |
download | python-coveragepy-git-ca8180e4551855364e11b1a1788ac6ef287e3d0e.tar.gz |
Use ->exit for missed branches in the textual report. #469
Diffstat (limited to 'tests/test_summary.py')
-rw-r--r-- | tests/test_summary.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/test_summary.py b/tests/test_summary.py index 89a8443c..681e2042 100644 --- a/tests/test_summary.py +++ b/tests/test_summary.py @@ -182,7 +182,6 @@ class SummaryTest(CoverageTest): print("x") if y: print("y") - return x branch(1, 1) """) out = self.run_command("coverage run --branch mybranch.py") @@ -191,11 +190,11 @@ class SummaryTest(CoverageTest): # Name Stmts Miss Branch BrPart Cover Missing # ---------------------------------------------------------- - # mybranch.py 7 0 4 2 82% 2->4, 4->6 + # mybranch.py 6 0 4 2 80% 2->4, 4->exit self.assertEqual(self.line_count(report), 3) self.assertIn("mybranch.py ", report) - self.assertEqual(self.last_line_squeezed(report), "mybranch.py 7 0 4 2 82% 2->4, 4->6") + self.assertEqual(self.last_line_squeezed(report), "mybranch.py 6 0 4 2 80% 2->4, 4->exit") def test_report_show_missing_branches_and_lines(self): self.make_file("main.py", """\ |