Skip to content
Snippets Groups Projects
Commit 21d92e1df358 authored by Stefan Behnel's avatar Stefan Behnel
Browse files

fix 'cimport cython' in string code fragments

parent 6c5aecda7440
Branches
No related tags found
No related merge requests found
......@@ -26,7 +26,7 @@
self.module_name = name
def find_module(self, module_name, relative_to = None, pos = None, need_pxd = 1):
if module_name != self.module_name:
if module_name not in (self.module_name, 'cython'):
raise AssertionError("Not yet supporting any cimports/includes from string code snippets")
return ModuleScope(module_name, parent_module = None, context = self)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment