From 027a07974acb0b3942bb27a50d0d58faa752986d Mon Sep 17 00:00:00 2001 From: Dag Sverre Seljebotn Date: Thu, 29 Jan 2009 19:36:43 +0100 Subject: [PATCH] Fix #172 --HG-- rename : tests/bugs/ValueError_T172.pyx => tests/bugs/numpy_ValueError_T172.pyx --- Cython/Compiler/Code.py | 2 +- tests/bugs/{ValueError_T172.pyx => numpy_ValueError_T172.pyx} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename tests/bugs/{ValueError_T172.pyx => numpy_ValueError_T172.pyx} (100%) 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 -- 2.26.2