def test_simple(self): # Simplest possible function mod = ext_tools.ext_module('simple_ext_function') var_specs = [] code = "" test = ext_tools.ext_function_from_specs('test',code,var_specs) mod.add_function(test) mod.compile(location=build_dir) import simple_ext_function simple_ext_function.test()
def test_simple(self): """ Simplest possible function """ mod = ext_tools.ext_module('simple_ext_function') var_specs = [] code = "" test = ext_tools.ext_function_from_specs('test',code,var_specs) mod.add_function(test) mod.compile(location=build_dir) import simple_ext_function simple_ext_function.test()