Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gwenaël Samain
cython
Commits
1c8f1009
Commit
1c8f1009
authored
Aug 10, 2013
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
extend test
parent
23ef44c7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
tests/run/cyclic_gc.pyx
tests/run/cyclic_gc.pyx
+19
-0
No files found.
tests/run/cyclic_gc.pyx
View file @
1c8f1009
...
...
@@ -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]'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment