summaryrefslogtreecommitdiff
path: root/tests/run/refcount_in_meth.pyx
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run/refcount_in_meth.pyx')
-rw-r--r--tests/run/refcount_in_meth.pyx2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/run/refcount_in_meth.pyx b/tests/run/refcount_in_meth.pyx
index ed21b437b..af6212779 100644
--- a/tests/run/refcount_in_meth.pyx
+++ b/tests/run/refcount_in_meth.pyx
@@ -12,8 +12,10 @@ True
True
"""
+cimport cython
from cpython.ref cimport PyObject
+@cython.always_allow_keywords(False)
def get_refcount(obj):
return (<PyObject*>obj).ob_refcnt