Commit 314c25b5 authored by Vitja Makarov's avatar Vitja Makarov

CF: move exception target assignment mark to right place, ticket #725

parent d91bd504
...@@ -955,10 +955,10 @@ class CreateControlFlowGraph(CythonTransform): ...@@ -955,10 +955,10 @@ class CreateControlFlowGraph(CythonTransform):
else: else:
# TODO: handle * pattern # TODO: handle * pattern
pass pass
if clause.target:
self.mark_assignment(clause.target)
entry_point = self.flow.newblock(parent=self.flow.block) entry_point = self.flow.newblock(parent=self.flow.block)
self.flow.nextblock() self.flow.nextblock()
if clause.target:
self.mark_assignment(clause.target)
self.visit(clause.body) self.visit(clause.body)
if self.flow.block: if self.flow.block:
self.flow.block.add_child(next_block) self.flow.block.add_child(next_block)
......
...@@ -19,7 +19,6 @@ temp_sideeffects_T654 ...@@ -19,7 +19,6 @@ temp_sideeffects_T654
class_scope_T671 class_scope_T671
slice2_T636 slice2_T636
builtin_subtype_methods_T653 builtin_subtype_methods_T653
control_flow_except_T725
# CPython regression tests that don't current work: # CPython regression tests that don't current work:
pyregr.test_threadsignals pyregr.test_threadsignals
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment