Commit 1c8f1009 authored by Stefan Behnel's avatar Stefan Behnel

extend test

parent 23ef44c7
......@@ -19,6 +19,23 @@ cdef class ExtTypeNoGC:
"""
@cython.test_fail_if_path_exists('//CClassDefNode[@scope.has_cyclic_pyobject_attrs = True]')
@cython.test_assert_path_exists('//CClassDefNode',
'//CClassDefNode[@scope]',
'//CClassDefNode[@scope.has_cyclic_pyobject_attrs = False]')
@cython.final
cdef class ExtTypeFinalNoGC:
"""
>>> obj = ExtTypeFinalNoGC()
>>> obj = ExtTypeFinalNoGC()
>>> obj = ExtTypeFinalNoGC()
>>> obj = ExtTypeFinalNoGC()
>>> obj = ExtTypeFinalNoGC()
>>> obj = ExtTypeFinalNoGC()
"""
cdef bytes s
@cython.test_fail_if_path_exists('//CClassDefNode[@scope.has_cyclic_pyobject_attrs = True]')
@cython.test_assert_path_exists('//CClassDefNode',
'//CClassDefNode[@scope]',
......@@ -50,6 +67,8 @@ cdef class ExtTypePyArgsNoGC:
cdef bytes b
cdef str s
cdef unicode u
# eventually, this should work, too:
# cdef ExtTypeFinalNoGC x
@cython.test_fail_if_path_exists('//CClassDefNode[@scope.has_cyclic_pyobject_attrs = True]')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment