Commit d61c005f authored by Pauli Virtanen's avatar Pauli Virtanen

Add test for the fused type refcounting issue

parent 351d3109
......@@ -222,6 +222,18 @@ def test_normal_class():
"""
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):
"""
>>> test_fused_declarations[pure_cython.short, pure_cython.float](5, 6.6)
......
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