summaryrefslogtreecommitdiff
path: root/coverage/parser.py
diff options
context:
space:
mode:
Diffstat (limited to 'coverage/parser.py')
-rw-r--r--coverage/parser.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/coverage/parser.py b/coverage/parser.py
index e75694f9..db8f65f3 100644
--- a/coverage/parser.py
+++ b/coverage/parser.py
@@ -893,6 +893,8 @@ class AstArcAnalyzer(object):
return_exits = self._combine_finally_starts(try_block.return_from, final_exits)
self.process_return_exits(return_exits)
if exits:
+ # The finally clause's exits are only exits for the try block
+ # as a whole if the try block had some exits to begin with.
exits = final_exits
return exits