summaryrefslogtreecommitdiff
path: root/coverage/parser.py
diff options
context:
space:
mode:
Diffstat (limited to 'coverage/parser.py')
-rw-r--r--coverage/parser.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/coverage/parser.py b/coverage/parser.py
index 8792d0ac..5c467a7e 100644
--- a/coverage/parser.py
+++ b/coverage/parser.py
@@ -437,11 +437,15 @@ class BlockBase:
# pylint: disable=unused-argument
def process_break_exits(self, exits, add_arc):
"""Process break exits."""
- return False
+ # Because break can only appear in loops, and most subclasses
+ # implement process_break_exits, this function is never reached.
+ raise AssertionError
def process_continue_exits(self, exits, add_arc):
"""Process continue exits."""
- return False
+ # Because continue can only appear in loops, and most subclasses
+ # implement process_continue_exits, this function is never reached.
+ raise AssertionError
def process_raise_exits(self, exits, add_arc):
"""Process raise exits."""