diff options
Diffstat (limited to 'tests/run/exceptionrefcount.pyx')
-rw-r--r-- | tests/run/exceptionrefcount.pyx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/run/exceptionrefcount.pyx b/tests/run/exceptionrefcount.pyx index cf7435a20..9f2224e01 100644 --- a/tests/run/exceptionrefcount.pyx +++ b/tests/run/exceptionrefcount.pyx @@ -29,8 +29,11 @@ >>> run_test(50, test_finally) """ +cimport cython from cpython.ref cimport PyObject +@cython.binding(False) +@cython.always_allow_keywords(False) def get_refcount(obj): return (<PyObject*>obj).ob_refcnt |