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:
--- /dev/null
+from Cython.Shadow import inline
+
+from Cython.TestUtils import CythonTest
+
+class TestStripLiterals(CythonTest):
+
+ def test_inline(self):
+ self.assertEquals(inline("return 1+2"), 3)