Commit ca03d568 authored by Robert Bradshaw's avatar Robert Bradshaw

cython.inline test

parent ac6c463b
......@@ -92,7 +92,7 @@ def cython_inline(code,
get_type = lambda x: 'object'
code, literals = strip_string_literals(code)
code = strip_common_indent(code)
ctx = Context(include_dirs, default_options)
ctx = Context(cython_include_dirs, default_options)
if locals is None:
locals = inspect.currentframe().f_back.f_back.f_locals
if globals is None:
......
from Cython.Shadow import inline
from Cython.TestUtils import CythonTest
class TestStripLiterals(CythonTest):
def test_inline(self):
self.assertEquals(inline("return 1+2"), 3)
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