diff options
| author | Ned Batchelder <ned@nedbatchelder.com> | 2016-12-18 21:56:14 -0500 |
|---|---|---|
| committer | Ned Batchelder <ned@nedbatchelder.com> | 2016-12-18 21:56:14 -0500 |
| commit | c3fd76b5c7902dc345e83854b0a9db4e8c1475a1 (patch) | |
| tree | 9058b3f0e3105114239969d333abc93db25c24ee /coverage | |
| parent | 18649f5d03c962211c3a157896aee5053992594a (diff) | |
| download | python-coveragepy-c3fd76b5c7902dc345e83854b0a9db4e8c1475a1.tar.gz | |
Clean up #493 fix
Diffstat (limited to 'coverage')
| -rw-r--r-- | coverage/parser.py | 2 |
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 |
