Commit 6608bae8 authored by Stefan Behnel's avatar Stefan Behnel

test fixes after latest with transform changes

parent eac2e5ff
...@@ -95,21 +95,21 @@ class TestWithTransform(TransformTest): ...@@ -95,21 +95,21 @@ class TestWithTransform(TransformTest):
self.assertCode(u""" self.assertCode(u"""
$1_0 = x $0_0 = x
$1_2 = $1_0.__exit__ $0_2 = $0_0.__exit__
$1_0.__enter__() $0_0.__enter__()
$1_1 = True $0_1 = True
$0_0 = None
try: try:
try: try:
$1_0 = None
y = z ** 3 y = z ** 3
except: except:
$1_1 = False $0_1 = False
if (not $1_2($0_0)): if (not $0_2($1_0)):
raise raise
finally: finally:
if $1_1: if $0_1:
$1_2(None, None, None) $0_2(None, None, None)
""", t) """, t)
...@@ -120,22 +120,22 @@ class TestWithTransform(TransformTest): ...@@ -120,22 +120,22 @@ class TestWithTransform(TransformTest):
""") """)
self.assertCode(u""" self.assertCode(u"""
$1_0 = x $0_0 = x
$1_2 = $1_0.__exit__ $0_2 = $0_0.__exit__
$1_3 = $1_0.__enter__() $0_3 = $0_0.__enter__()
$1_1 = True $0_1 = True
$0_0 = None
try: try:
try: try:
y = $1_3 $1_0 = None
y = $0_3
y = z ** 3 y = z ** 3
except: except:
$1_1 = False $0_1 = False
if (not $1_2($0_0)): if (not $0_2($1_0)):
raise raise
finally: finally:
if $1_1: if $0_1:
$1_2(None, None, None) $0_2(None, None, None)
""", t) """, t)
......
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