new test for ticket #354
authorStefan Behnel <scoder@users.berlios.de>
Tue, 4 May 2010 07:52:05 +0000 (09:52 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Tue, 4 May 2010 07:52:05 +0000 (09:52 +0200)
tests/run/bint_property_T354.pyx [new file with mode: 0644]

diff --git a/tests/run/bint_property_T354.pyx b/tests/run/bint_property_T354.pyx
new file mode 100644 (file)
index 0000000..9a9ce86
--- /dev/null
@@ -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