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 | 2c00b87b47d164ecd67de21df8caa38cd9b681ab (patch) | |
tree | 3f983ceaa970a032693a3b5d20b4421888e66f7d /tests/test_summary.py | |
parent | fecf20ef16651d48f9221e77f7a57de7a37b1658 (diff) | |
download | python-coveragepy-2c00b87b47d164ecd67de21df8caa38cd9b681ab.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 89a8443..681e204 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", """\ |