summaryrefslogtreecommitdiff
path: root/Cython/TestUtils.py
diff options
context:
space:
mode:
authorDag Sverre Seljebotn <dagss@student.matnat.uio.no>2008-05-27 13:15:50 +0200
committerDag Sverre Seljebotn <dagss@student.matnat.uio.no>2008-05-27 13:15:50 +0200
commitfcccb15f8c4d582c727ec2c79e0705c6afbc7e49 (patch)
treef10b061f9c443586f47e9f81f9872c702788e551 /Cython/TestUtils.py
parentdd000240e072ddf67759849c09a5edd16d732e96 (diff)
downloadcython-fcccb15f8c4d582c727ec2c79e0705c6afbc7e49.tar.gz
Focus on visitors rather than transforms; Transform.py renamed to Visitor.py
Some changes in class hierarchies etc.; transforms no longer has a common base class and VisitorTransform is a subclass of TreeVisitor rather than the reverse. Also removed visitor use of get_child_accessors; child_attrs is accessed directly (because of claims of overengineering :-) ). --HG-- rename : Cython/Compiler/Transform.py => Cython/Compiler/Visitor.py
Diffstat (limited to 'Cython/TestUtils.py')
-rw-r--r--Cython/TestUtils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Cython/TestUtils.py b/Cython/TestUtils.py
index cfa0668fb..a8c860b1c 100644
--- a/Cython/TestUtils.py
+++ b/Cython/TestUtils.py
@@ -8,7 +8,7 @@ from Cython.Compiler.TreeFragment import TreeFragment, strip_common_indent
class CythonTest(unittest.TestCase):
def assertCode(self, expected, result_tree):
writer = CodeWriter()
- writer(result_tree)
+ writer.write(result_tree)
result_lines = writer.result.lines
expected_lines = strip_common_indent(expected.split("\n"))