From 6595d8d16cd12f4e588d05a3b1c37fb772b0fc30 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sat, 23 Apr 2011 20:35:29 +0200 Subject: [PATCH] fix test after 'with' statement change --- Cython/Compiler/Tests/TestTreeFragment.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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 -- 2.26.2