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
Boxiang Sun
cython
Commits
d61c005f
Commit
d61c005f
authored
Mar 17, 2013
by
Pauli Virtanen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test for the fused type refcounting issue
parent
351d3109
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
tests/run/fused_types.pyx
tests/run/fused_types.pyx
+12
-0
No files found.
tests/run/fused_types.pyx
View file @
d61c005f
...
@@ -222,6 +222,18 @@ def test_normal_class():
...
@@ -222,6 +222,18 @@ def test_normal_class():
"""
"""
NormalClass
().
method
[
pure_cython
.
short
](
10
)
NormalClass
().
method
[
pure_cython
.
short
](
10
)
def
test_normal_class_refcount
():
"""
>>> test_normal_class_refcount()
short 10
0
"""
import
sys
x
=
NormalClass
()
c
=
sys
.
getrefcount
(
x
)
x
.
method
[
pure_cython
.
short
](
10
)
print
sys
.
getrefcount
(
x
)
-
c
def
test_fused_declarations
(
cython
.
integral
i
,
cython
.
floating
f
):
def
test_fused_declarations
(
cython
.
integral
i
,
cython
.
floating
f
):
"""
"""
>>> test_fused_declarations[pure_cython.short, pure_cython.float](5, 6.6)
>>> test_fused_declarations[pure_cython.short, pure_cython.float](5, 6.6)
...
...
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