fix test after 'with' statement change
authorStefan Behnel <scoder@users.berlios.de>
Sat, 23 Apr 2011 18:35:29 +0000 (20:35 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Sat, 23 Apr 2011 18:35:29 +0000 (20:35 +0200)
Cython/Compiler/Tests/TestTreeFragment.py

index 76a0af40fd68d07babdd04f1feb14fa7415e34ed..3352c71d57e6e749003f39335460fc2c41d28d46 100644 (file)
@@ -54,11 +54,10 @@ class TestTreeFragments(CythonTest):
             x = TMP
         """)
         T = F.substitute(temps=[u"TMP"])
-        s = T.stats
-        self.assert_(s[0].expr.name == "__tmpvar_1")
-#        self.assert_(isinstance(s[0].expr, TempRefNode))
-#        self.assert_(isinstance(s[1].rhs, TempRefNode))
-#        self.assert_(s[0].expr.handle is s[1].rhs.handle)
+        s = T.body.stats
+        self.assert_(isinstance(s[0].expr, TempRefNode))
+        self.assert_(isinstance(s[1].rhs, TempRefNode))
+        self.assert_(s[0].expr.handle is s[1].rhs.handle)
 
 if __name__ == "__main__":
     import unittest