From: Robert Bradshaw Date: Wed, 15 Sep 2010 04:44:29 +0000 (-0700) Subject: cleanup GetAttrGetItemRedirect test. X-Git-Tag: 0.14.alpha0~310 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=552b69942342828b964e8765478821a9e289537d;p=cython.git cleanup GetAttrGetItemRedirect test. --- diff --git a/tests/run/special_methods_T561.pyx b/tests/run/special_methods_T561.pyx index 27cce9cf..1d37d208 100644 --- a/tests/run/special_methods_T561.pyx +++ b/tests/run/special_methods_T561.pyx @@ -544,10 +544,10 @@ cdef class GetAttrGetItemRedirect: def __getattr__(self, name): if name == 'item': - return self.__getitem__(name) + return self[name] return ('attr', self.obj) def __getitem__(self, key): if key == 'attr': - return self.__getattr__(key) + return getattr(self, key) return ('item', self.obj)