From: Stefan Behnel Date: Sat, 23 Apr 2011 18:35:29 +0000 (+0200) Subject: fix test after 'with' statement change X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=626827013ce4c8fee3329330c6a1424427170cbc;p=cython.git fix test after 'with' statement change --- diff --git a/Cython/Compiler/Tests/TestTreeFragment.py b/Cython/Compiler/Tests/TestTreeFragment.py index 76a0af40..3352c71d 100644 --- a/Cython/Compiler/Tests/TestTreeFragment.py +++ b/Cython/Compiler/Tests/TestTreeFragment.py @@ -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