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):
else:
# TODO: handle * pattern
pass
if clause.target:
self.mark_assignment(clause.target)
entry_point = self.flow.newblock(parent=self.flow.block)
self.flow.nextblock()
if clause.target:
self.mark_assignment(clause.target)
self.visit(clause.body)
if self.flow.block:
self.flow.block.add_child(next_block)
......
......@@ -19,7 +19,6 @@ temp_sideeffects_T654
class_scope_T671
slice2_T636
builtin_subtype_methods_T653
control_flow_except_T725
# CPython regression tests that don't current work:
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