From: Stefan Behnel Date: Tue, 4 May 2010 07:52:05 +0000 (+0200) Subject: new test for ticket #354 X-Git-Tag: 0.13.beta0~110 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=555a5640cf45addaaec2cab7b0e03bf9edd5daee;p=cython.git new test for ticket #354 --- 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