From cff8447feda0c9ef973b7faab8a9307015ab6094 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Mon, 16 Mar 2009 21:33:46 +0100 Subject: [PATCH] test case for ticket 232 (without __new__ support) --- tests/bugs/ext_instance_type_T232.pyx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tests/bugs/ext_instance_type_T232.pyx diff --git a/tests/bugs/ext_instance_type_T232.pyx b/tests/bugs/ext_instance_type_T232.pyx new file mode 100644 index 00000000..cee1a706 --- /dev/null +++ b/tests/bugs/ext_instance_type_T232.pyx @@ -0,0 +1,14 @@ +__doc__ = u""" +>>> set_attr(5) +>>> get_attr() +None +""" + +cdef class MyExt: + cdef object attr + +def set_attr(value): + MyExt().attr = value + +def get_attr(): + return MyExt().attr -- 2.26.2