1
0
forked from VimPlug/jedi

Refactor test_interpreter.

This commit is contained in:
Dave Halter
2016-12-16 18:55:21 +01:00
parent 5fb5580259
commit d93f6815fc
3 changed files with 106 additions and 83 deletions

View File

@@ -83,9 +83,9 @@ def _break_check(context, context_scope, flow_scope, node):
break
reachable = reachable.invert()
else:
node = flow_scope.node_in_which_check_node(node)
if node is not None:
reachable = _check_if(context, node)
flow_node = flow_scope.node_in_which_check_node(node)
if flow_node is not None:
reachable = _check_if(context, flow_node)
elif flow_scope.type in ('try_stmt', 'while_stmt'):
return UNSURE