diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2016-02-15 06:18:49 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2016-02-15 06:18:49 -0500 |
commit | 08aef94f5f47122674980fe8a522c80e1f4831ba (patch) | |
tree | 13fa434f71a5d62a35986d5c6f1e18b86e0bc481 /tests/test_parser.py | |
parent | 5f39a3d723937e8f4aa4465c6064f3a94cb5b8d7 (diff) | |
download | python-coveragepy-git-08aef94f5f47122674980fe8a522c80e1f4831ba.tar.gz |
More missing-branch descriptions
Diffstat (limited to 'tests/test_parser.py')
-rw-r--r-- | tests/test_parser.py | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/tests/test_parser.py b/tests/test_parser.py index 618962a0..8ff0d966 100644 --- a/tests/test_parser.py +++ b/tests/test_parser.py @@ -297,7 +297,18 @@ class ParserMissingArcDescriptionTest(CoverageTest): ) self.assertEqual( parser.missing_arc_description(16, 2), - "line 16 didn't jump to line 2, because the continue on line 8 wasn't executed or the continue on line 10 wasn't executed" + "line 16 didn't jump to line 2, " + "because the continue on line 8 wasn't executed" + " or " + "the continue on line 10 wasn't executed" + ) + self.assertEqual( + parser.missing_arc_description(16, -1), + "line 16 didn't except from function 'function', " + "because the raise on line 14 wasn't executed" + " or " + "line 16 didn't return from function 'function', " + "because the return on line 12 wasn't executed" ) |