1# mode: run 2# ticket: 474 3cimport cython 4 5 6cdef class TestInlineMethod(object): 7 """ 8 >>> test = TestInlineMethod() 9 >>> test.test_cdef_method() 10 0 11 """ 12 13 @cython.test_assert_path_exists( 14 "//AttributeNode[@entry.is_inline_cmethod=True]", 15 "//AttributeNode[@entry.is_final_cmethod=True]") 16 def test_cdef_method(self): 17 return self.cdef_inline_method() 18 19 20cdef class Subtyping(TestInlineMethod): 21 """ 22 >>> test = Subtyping() 23 >>> test.test_cdef_subtyping() 24 0 25 """ 26 27 @cython.test_assert_path_exists( 28 "//AttributeNode[@entry.is_inline_cmethod=True]", 29 "//AttributeNode[@entry.is_final_cmethod=True]") 30 def test_cdef_subtyping(self): 31 return self.cdef_inline_method() 32