Commit 552b6994 authored by Robert Bradshaw's avatar Robert Bradshaw

cleanup GetAttrGetItemRedirect test.

parent b6dbdc5d
...@@ -544,10 +544,10 @@ cdef class GetAttrGetItemRedirect: ...@@ -544,10 +544,10 @@ cdef class GetAttrGetItemRedirect:
def __getattr__(self, name): def __getattr__(self, name):
if name == 'item': if name == 'item':
return self.__getitem__(name) return self[name]
return ('attr', self.obj) return ('attr', self.obj)
def __getitem__(self, key): def __getitem__(self, key):
if key == 'attr': if key == 'attr':
return self.__getattr__(key) return getattr(self, key)
return ('item', self.obj) return ('item', self.obj)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment