From 555a5640cf45addaaec2cab7b0e03bf9edd5daee Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Tue, 4 May 2010 09:52:05 +0200 Subject: [PATCH] new test for ticket #354 --- tests/run/bint_property_T354.pyx | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tests/run/bint_property_T354.pyx diff --git a/tests/run/bint_property_T354.pyx b/tests/run/bint_property_T354.pyx new file mode 100644 index 00000000..9a9ce86c --- /dev/null +++ b/tests/run/bint_property_T354.pyx @@ -0,0 +1,15 @@ + +cdef class Test: + """ + >>> t = Test(True) + >>> t.some_ro_bool + True + >>> t.some_public_bool + True + """ + cdef public bint some_public_bool + cdef readonly bint some_ro_bool + + def __init__(self, bint boolval): + self.some_ro_bool = boolval + self.some_public_bool = boolval -- 2.26.2