def test_inherited_getattribute():
 class x(object, ):
  def __getattribute__(self, name):
   if (name == 'abc'):
    return 42
   return object.__getattribute__(self, name)
 class y(x, ):
  pass
 AreEqual(y().abc, 42)

def test_inherited_getattribute ( ) : class x ( object , ) : def __getattribute__ ( self , name ) : if ( name == 'abc' ) : return 42 return object . __getattribute__ ( self , name ) class y ( x , ) : pass AreEqual ( y ( ) . abc , 42 )
inherited getattribute should be respected .