diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2016-01-07 19:42:42 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2016-01-07 19:42:42 -0500 |
commit | 2e48dedf1ea439988fba0c9693cea7a818ab3213 (patch) | |
tree | 49fc7876f38354b55c7b144d42b784920160b0f8 /coverage/parser.py | |
parent | fcc18ffcb11bca315c6c0690414e817d5c22b4dd (diff) | |
download | python-coveragepy-git-2e48dedf1ea439988fba0c9693cea7a818ab3213.tar.gz |
Add tests of multiline lambdas, though i don't quite understand the line numbers involved
--HG--
branch : ast-branch
Diffstat (limited to 'coverage/parser.py')
-rw-r--r-- | coverage/parser.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/coverage/parser.py b/coverage/parser.py index c03a3083..9f7400e5 100644 --- a/coverage/parser.py +++ b/coverage/parser.py @@ -312,8 +312,8 @@ class FunctionBlock(object): class TryBlock(object): def __init__(self, handler_start=None, final_start=None): - self.handler_start = handler_start # TODO: is this used? - self.final_start = final_start # TODO: is this used? + self.handler_start = handler_start + self.final_start = final_start self.break_from = set() self.continue_from = set() self.return_from = set() @@ -716,7 +716,6 @@ class AstArcAnalyzer(object): start = self.line_for_node(node) self.arcs.add((-1, start)) self.arcs.add((start, -start)) - # TODO: test multi-line lambdas def contains_return_expression(self, node): """Is there a yield-from or await in `node` someplace?""" |