Adjust cdef_members_T517 tests to reflect visibility for struct attributes.
authorW. Trevor King <wking@drexel.edu>
Thu, 10 Mar 2011 23:29:39 +0000 (18:29 -0500)
committerW. Trevor King <wking@drexel.edu>
Thu, 10 Mar 2011 23:29:44 +0000 (18:29 -0500)
commit185ba1f683baf9b03e609949de614eb0ebdcb8ff
tree5d18efbad192a6908462e586010ad9fcb26c00aa
parent05206bcaf4b41de08adb4a3b834c338a0c7d2d0e
Adjust cdef_members_T517 tests to reflect visibility for struct attributes.

Struct attributes can have private or readonly, but not public, Python
visibility.

Readonly structs are currently converted to dicts on the fly for each
call getting the struct attribute value.  The dict-generation code is
currently broken for C++ (error: declaration does not declare
anything), so tests/run/cdef_members_T517.pyx currently fails a C++
test.  However, we hope to soon replace it with full blown Python
classes representing structs/unions/enums which will work for both C
and C++.
tests/errors/cdef_members_T517.pyx
tests/run/cdef_members_T517.pyx