cython-devel

changeset 2497:87e556fc4e33

Fix #418 (wrong error message)
author Dag Sverre Seljebotn <dagss@student.matnat.uio.no>
date Fri Oct 16 13:14:22 2009 +0200 (2 years ago)
parents 996bc56f4c2b
children 3ac804c4897d
files Cython/Compiler/Symtab.py tests/errors/notcimportedT418.pyx
line diff
1.1 --- a/Cython/Compiler/Symtab.py Fri Oct 16 12:21:11 2009 +0200 1.2 +++ b/Cython/Compiler/Symtab.py Fri Oct 16 13:14:22 2009 +0200 1.3 @@ -499,7 +499,7 @@ 1.4 if entry.as_module: 1.5 scope = entry.as_module 1.6 else: 1.7 - error(pos, "'%s' is not a cimported module" % scope.qualified_name) 1.8 + error(pos, "'%s' is not a cimported module" % '.'.join(path)) 1.9 return None 1.10 return scope 1.11
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/tests/errors/notcimportedT418.pyx Fri Oct 16 13:14:22 2009 +0200 2.3 @@ -0,0 +1,7 @@ 2.4 +import somemod.child 2.5 + 2.6 +cdef somemod.child.something x 2.7 + 2.8 +_ERRORS = u""" 2.9 +3:5: 'somemod.child' is not a cimported module 2.10 +"""