diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2015-12-28 16:48:05 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2015-12-28 16:48:05 -0500 |
commit | 35c09545a39e70065ce55264f2688ac87dd6a725 (patch) | |
tree | 3e1bedf68f383810c65cdbce4f4d0c39e1245a66 /coverage/parser.py | |
parent | b7a35186425cfef265548afc75b527752bed0c9a (diff) | |
download | python-coveragepy-git-35c09545a39e70065ce55264f2688ac87dd6a725.tar.gz |
Execution flows from the end of exception handlers to the finally
--HG--
branch : ast-branch
Diffstat (limited to 'coverage/parser.py')
-rw-r--r-- | coverage/parser.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/coverage/parser.py b/coverage/parser.py index 4b920f10..65b1f0fb 100644 --- a/coverage/parser.py +++ b/coverage/parser.py @@ -432,9 +432,9 @@ class AstArcAnalyzer(object): # TODO: handler_node.name and handler_node.type handler_exits |= self.add_body_arcs(handler_node.body, from_line=handler_start) # TODO: node.orelse - # TODO: node.finalbody + exits |= handler_exits if node.finalbody: - exits = self.add_body_arcs(node.finalbody, prev_lines=exits|handler_exits) + exits = self.add_body_arcs(node.finalbody, prev_lines=exits) return exits def handle_While(self, node): |