1# ticket: 454 2 3cimport cython 4 5cdef class TypeWithFactory: 6 @cython.test_assert_path_exists('//PythonCapiCallNode') 7 @cython.test_fail_if_path_exists('//SimpleCallNode/AttributeNode') 8 @classmethod 9 def new(cls): 10 return cls.__new__(cls) 11 12def make_new_factory(): 13 """ 14 >>> isinstance(make_new_factory(), TypeWithFactory) 15 True 16 """ 17 return TypeWithFactory.new() 18