From: Dag Sverre Seljebotn Date: Thu, 29 Jan 2009 18:36:43 +0000 (+0100) Subject: Fix #172 X-Git-Tag: 0.11.rc~93^2~26^2~5 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=027a07974acb0b3942bb27a50d0d58faa752986d;p=cython.git Fix #172 --HG-- rename : tests/bugs/ValueError_T172.pyx => tests/bugs/numpy_ValueError_T172.pyx --- diff --git a/Cython/Compiler/Code.py b/Cython/Compiler/Code.py index 9ecc4645..3ebb184c 100644 --- a/Cython/Compiler/Code.py +++ b/Cython/Compiler/Code.py @@ -320,7 +320,7 @@ class GlobalState(object): def should_declare(self, cname, entry): if cname in self.declared_cnames: other = self.declared_cnames[cname] - assert entry.type == other.type + assert str(entry.type) == str(other.type) assert entry.init == other.init return False else: diff --git a/tests/bugs/ValueError_T172.pyx b/tests/bugs/numpy_ValueError_T172.pyx similarity index 100% rename from tests/bugs/ValueError_T172.pyx rename to tests/bugs/numpy_ValueError_T172.pyx