summaryrefslogtreecommitdiff
path: root/coverage/parser.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2016-12-18 21:56:14 -0500
committerNed Batchelder <ned@nedbatchelder.com>2016-12-18 21:56:14 -0500
commitc3fd76b5c7902dc345e83854b0a9db4e8c1475a1 (patch)
tree9058b3f0e3105114239969d333abc93db25c24ee /coverage/parser.py
parent18649f5d03c962211c3a157896aee5053992594a (diff)
downloadpython-coveragepy-c3fd76b5c7902dc345e83854b0a9db4e8c1475a1.tar.gz
Clean up #493 fix
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 e75694f..db8f65f 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