summaryrefslogtreecommitdiff
path: root/tests/run/altet2.pyx
blob: 124071e700b8dc5d7b2cfe215a254ac22aa7dea9 (plain)
1
2
3
4
5
6
7
8
9
10
__doc__ = u"""
  >>> iter(C())    # doctest: +ELLIPSIS
  Traceback (most recent call last):
  TypeError: iter() returned non-iterator...
"""

cdef class C:

    def __iter__(self):
        "This is a doc string."