diff options
author | mattip <matti.picus@gmail.com> | 2019-01-05 23:42:42 +0200 |
---|---|---|
committer | mattip <matti.picus@gmail.com> | 2019-01-05 23:42:42 +0200 |
commit | 6af2d10e0fdccb62d277c5be5abd68cc62664568 (patch) | |
tree | 12dc04d271ca65b90fcf2a41ab1cb52e516a4fd5 | |
parent | 64c45122c3bf11ace275923f0decac95f9e7caa2 (diff) | |
download | cython-6af2d10e0fdccb62d277c5be5abd68cc62664568.tar.gz |
MAINT: make attribute names unique to prove c-getters are being used
-rw-r--r-- | tests/run/ext_attr_getter.srctree | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/run/ext_attr_getter.srctree b/tests/run/ext_attr_getter.srctree index c63f0a1e7..247b18acd 100644 --- a/tests/run/ext_attr_getter.srctree +++ b/tests/run/ext_attr_getter.srctree @@ -123,15 +123,15 @@ def sum(Foo f): cdef extern from "foo.h": ctypedef class foo_extension.Foo [object FooStructOpaque, check_size ignore]: @property - cdef int field0(self): + cdef int fieldM0(self): return PyFoo_GET0M(self) @property - cdef int field1(self): + cdef int fieldF1(self): return PyFoo_Get1F(self) @property - cdef int field2(self): + cdef int fieldM2(self): return PyFoo_GET2M(self) int PyFoo_GET0M(Foo); # this is actually a macro ! @@ -141,7 +141,7 @@ cdef extern from "foo.h": def sum(Foo f): # Note - not a cdef function but compiling the f.__getattr__('field0') # notices the getter and replaces the __getattr__ in c by PyFoo_GET anyway - return f.field0 + f.field1 + f.field2 + return f.fieldM0 + f.fieldF1 + f.fieldM2 ######## getter_fail0.pyx ######## |