Fix #172
authorDag Sverre Seljebotn <dagss@student.matnat.uio.no>
Thu, 29 Jan 2009 18:36:43 +0000 (19:36 +0100)
committerDag Sverre Seljebotn <dagss@student.matnat.uio.no>
Thu, 29 Jan 2009 18:36:43 +0000 (19:36 +0100)
--HG--
rename : tests/bugs/ValueError_T172.pyx => tests/bugs/numpy_ValueError_T172.pyx

Cython/Compiler/Code.py
tests/bugs/numpy_ValueError_T172.pyx [moved from tests/bugs/ValueError_T172.pyx with 100% similarity]

index 9ecc46450a260a47ed928b8f703079dc23b06d1c..3ebb184c03da5b91a33d2907fb79d433c33c6b8d 100644 (file)
@@ -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: