From: Stefan Behnel Date: Sun, 15 Aug 2010 12:05:04 +0000 (+0200) Subject: added docstring test for __getattr__ which makes the special method test fail X-Git-Tag: 0.13~18 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5aaa6dbcdcddb6146ccb8ff97b8b13abb83b5754;p=cython.git added docstring test for __getattr__ which makes the special method test fail --- diff --git a/tests/run/special_method_docstrings.pyx b/tests/run/special_method_docstrings.pyx index b556bc9f..171292ba 100644 --- a/tests/run/special_method_docstrings.pyx +++ b/tests/run/special_method_docstrings.pyx @@ -6,6 +6,8 @@ cdef class A: 'A.__len__ docstring' >>> A.__add__.__doc__ 'A.__add__ docstring' + >>> A.__getattr__.__doc__ + 'A.__getattr__ docstring' """ def __init__(self): "A.__init__ docstring" @@ -13,6 +15,8 @@ cdef class A: "A.__len__ docstring" def __add__(self, other): "A.__add__ docstring" + def __getattr__(self, name): + "A.__getattr__ docstring" cdef class B(A): """ @@ -22,6 +26,8 @@ cdef class B(A): 'B.__len__ docstring' >>> B.__add__.__doc__ 'A.__add__ docstring' + >>> B.__getattr__.__doc__ + 'A.__getattr__ docstring' """ def __len__(self): "B.__len__ docstring" @@ -34,6 +40,8 @@ class C(A): 'C.__len__ docstring' >>> C.__add__.__doc__ 'A.__add__ docstring' + >>> C.__getattr__.__doc__ + 'A.__getattr__ docstring' """ def __len__(self): "C.__len__ docstring"