Commit 8907aefd authored by Robert Bradshaw's avatar Robert Bradshaw

More line ending fixes.

parent cbfb4528
import unittest import unittest
from Cython.TestUtils import TransformTest from Cython.TestUtils import TransformTest
from Cython.Compiler.ParseTreeTransforms import DecoratorTransform from Cython.Compiler.ParseTreeTransforms import DecoratorTransform
class TestDecorator(TransformTest): class TestDecorator(TransformTest):
def test_decorator(self): def test_decorator(self):
t = self.run_pipeline([DecoratorTransform(None)], u""" t = self.run_pipeline([DecoratorTransform(None)], u"""
def decorator(fun): def decorator(fun):
return fun return fun
@decorator @decorator
def decorated(): def decorated():
pass pass
""") """)
self.assertCode(u""" self.assertCode(u"""
def decorator(fun): def decorator(fun):
return fun return fun
def decorated(): def decorated():
pass pass
decorated = decorator(decorated) decorated = decorator(decorated)
""", t) """, t)
if __name__ == '__main__': if __name__ == '__main__':
unittest.main() unittest.main()
This diff is collapsed.
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