summaryrefslogtreecommitdiff
path: root/tests/run/extmember.pyx
blob: 1bd9d018d162ae03e5e7ff2f4a1189886e8533e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
__doc__ = u"""
    >>> s = Spam()
    >>> s.e = s
    >>> s.e = 1
    Traceback (most recent call last):
    TypeError: Cannot convert int to extmember.Spam
    >>> s.e is s
    True
    >>> s.e = None

    >>> s = Bot()
    >>> s.e = s
    >>> s.e = 1
    Traceback (most recent call last):
    TypeError: Cannot convert int to extmember.Bot
    >>> s.e is s
    True
    >>> s.e = None
"""

# declared in the pxd
cdef class Spam:
    pass

# not declared in the pxd
cdef class Bot:
    cdef public Bot e