From 552b69942342828b964e8765478821a9e289537d Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Tue, 14 Sep 2010 21:44:29 -0700 Subject: [PATCH] cleanup GetAttrGetItemRedirect test. --- tests/run/special_methods_T561.pyx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.26.2