Commit 7c832382 authored by Stefan Behnel's avatar Stefan Behnel

cleanup of last patch, fix typo in test name

--HG--
rename : tests/run/pyfuncion_redefine_T489.pyx => tests/run/pyfunction_redefine_T489.pyx
parent bfb3302a
...@@ -531,7 +531,7 @@ class Scope(object): ...@@ -531,7 +531,7 @@ class Scope(object):
if entry: if entry:
if entry.type.is_unspecified: if entry.type.is_unspecified:
entry.type = py_object_type entry.type = py_object_type
elif not entry.type.is_pyobject: elif entry.type is not py_object_type:
return self._declare_pyfunction(name, pos, visibility=visibility, entry=entry) return self._declare_pyfunction(name, pos, visibility=visibility, entry=entry)
else: # declare entry stub else: # declare entry stub
self.declare_var(name, py_object_type, pos, visibility=visibility) self.declare_var(name, py_object_type, pos, visibility=visibility)
......
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