From f19416a46c0ad1bff448b77d458e34760ba2a6a4 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sun, 18 Dec 2016 21:56:14 -0500 Subject: Clean up #493 fix --- coverage/parser.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'coverage/parser.py') 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 -- cgit v1.2.1