From d5419f9eec608662ad24807896e8b90e55b4c805 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Thu, 3 Dec 2009 13:48:51 +0100 Subject: [PATCH] fix test case --- tests/errors/e_cstruct.pyx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/errors/e_cstruct.pyx b/tests/errors/e_cstruct.pyx index 90ab7655..3f7e9a6e 100644 --- a/tests/errors/e_cstruct.pyx +++ b/tests/errors/e_cstruct.pyx @@ -15,17 +15,17 @@ cdef void eggs(Spam s): j = s.k # error - undef attribute j = s.p # type error s.p = j # type error - j = j.i # error - no attributes - j.i = j # error - no attributes + j = j.i # no error - coercion to Python object + j.i = j # no error - coercion to Python object j = gp.x # error - incomplete type gp.x = j # error - incomplete type + + _ERRORS = u""" 5:36: C struct/union member cannot be a Python object 15:6: Object of type 'Spam' has no attribute 'k' 16:6: Cannot assign type 'float *[42]' to 'int' 17:21: Cannot assign type 'int' to 'float *[42]' -18:6: Object of type 'int' has no attribute 'i' -19:2: Object of type 'int' has no attribute 'i' 20:7: Cannot select attribute of incomplete type 'Grail' 21:3: Cannot select attribute of incomplete type 'Grail' """ -- 2.26.2