fix test case when safe type inference is enabled
authorStefan Behnel <scoder@users.berlios.de>
Fri, 4 Dec 2009 06:25:03 +0000 (07:25 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Fri, 4 Dec 2009 06:25:03 +0000 (07:25 +0100)
tests/run/typedfieldbug_T303.pyx

index e80b4ead13f929f6adb10a9458226a6a672a4aa8..82094d4be87dd2a565e1cee4f84e24bb133fbcb9 100644 (file)
@@ -44,7 +44,7 @@ def f():
     42.0
     42.0
     """
-    c = MyClass()
+    cdef object c = MyClass()
     print c.actual_double
     print c.float_isreally_double
 
@@ -55,10 +55,10 @@ def longdouble_access():
     ...
     SystemError: bad memberdescr type
     """
-    c = MyClass()
+    cdef object c = MyClass()
     print c.float_isreally_longdouble
 
 
 def readonly():
-    c = MyClass()
+    cdef object c = MyClass()
     c.actual_double = 3