From: Stefan Behnel Date: Fri, 4 Dec 2009 06:25:03 +0000 (+0100) Subject: fix test case when safe type inference is enabled X-Git-Tag: 0.12.1~97 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=7c5d73afeb24934d8ff69078f46ef097472cafa8;p=cython.git fix test case when safe type inference is enabled --- diff --git a/tests/run/typedfieldbug_T303.pyx b/tests/run/typedfieldbug_T303.pyx index e80b4ead..82094d4b 100644 --- a/tests/run/typedfieldbug_T303.pyx +++ b/tests/run/typedfieldbug_T303.pyx @@ -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