Commit c87c0ba8 authored by Vitja Makarov's avatar Vitja Makarov

Fix tests broken by CF

parent 22da8446
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
cdef void spam(): cdef void spam():
cdef long long L cdef long long L
cdef unsigned long long U cdef unsigned long long U
cdef object x cdef object x = object()
L = x L = x
x = L x = L
U = x U = x
......
# mode: compile # mode: compile
cdef int f() except -1: cdef int f() except -1:
cdef object x, y, z, w cdef object x, y = 0, z = 0, w = 0
cdef int i cdef int i
x = abs(y) x = abs(y)
delattr(x, 'spam') delattr(x, 'spam')
......
...@@ -14,7 +14,7 @@ cdef class SuperSpam(Spam): ...@@ -14,7 +14,7 @@ cdef class SuperSpam(Spam):
cdef void tomato(): cdef void tomato():
cdef Spam spam cdef Spam spam
cdef SuperSpam superspam cdef SuperSpam superspam = SuperSpam()
spam = superspam spam = superspam
spam.add_tons(42) spam.add_tons(42)
superspam.add_tons(1764) superspam.add_tons(1764)
......
...@@ -10,8 +10,8 @@ cdef class Swallow: ...@@ -10,8 +10,8 @@ cdef class Swallow:
def f(Grail g): def f(Grail g):
cdef int i = 0 cdef int i = 0
cdef Swallow s cdef Swallow s = Swallow()
cdef object x cdef object x = Grail()
g = x g = x
x = g x = g
g = i g = i
......
...@@ -10,7 +10,7 @@ cdef class E: ...@@ -10,7 +10,7 @@ cdef class E:
cdef readonly object __weakref__ cdef readonly object __weakref__
cdef void f(): cdef void f():
cdef C c cdef C c = C()
cdef object x cdef object x
x = c.__weakref__ x = c.__weakref__
c.__weakref__ = x c.__weakref__ = x
......
...@@ -18,7 +18,7 @@ cdef void r() nogil: ...@@ -18,7 +18,7 @@ cdef void r() nogil:
q() q()
cdef object m(): cdef object m():
cdef object x, y, obj cdef object x, y = 0, obj
cdef int i, j, k cdef int i, j, k
global fred global fred
q() q()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment