__doc__ = u"""
>>> s = Spam(Eggs("ham"))
>>> test(s)
'ham'
"""
cdef class Eggs:
cdef object ham
def __init__(self, ham):
self.ham = ham
cdef class Spam:
cdef Eggs eggs
def __init__(self, eggs):
self.eggs = eggs
cdef object tomato(Spam s):
food = s.eggs.ham
return food
def test(Spam s):
return tomato(s)
-
Stefan Behnel authored
tons of fixes for the test suite: docstrings must be unicode strings to run in Py3's doctest (obviously...) --HG-- rename : tests/compile/withnogil.pyx => tests/run/withnogil.pyx
1e7a8d0c