From: Stefan Behnel Date: Mon, 6 Dec 2010 18:20:06 +0000 (+0100) Subject: cleanup of last patch, fix typo in test name X-Git-Tag: 0.14.beta0~11 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=7c832382412f494f444cf827869869ec049b1c0b;p=cython.git cleanup of last patch, fix typo in test name --HG-- rename : tests/run/pyfuncion_redefine_T489.pyx => tests/run/pyfunction_redefine_T489.pyx --- diff --git a/Cython/Compiler/Symtab.py b/Cython/Compiler/Symtab.py index a619c671..068e99e1 100644 --- a/Cython/Compiler/Symtab.py +++ b/Cython/Compiler/Symtab.py @@ -531,7 +531,7 @@ class Scope(object): if entry: if entry.type.is_unspecified: 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) else: # declare entry stub self.declare_var(name, py_object_type, pos, visibility=visibility) diff --git a/tests/run/pyfuncion_redefine_T489.pyx b/tests/run/pyfunction_redefine_T489.pyx similarity index 100% rename from tests/run/pyfuncion_redefine_T489.pyx rename to tests/run/pyfunction_redefine_T489.pyx