#NEWLINE# def _instrument_runner( runner_generator , logger , runner ) : #NEWLINE# #INDENT# method_name = _get_make_result_method_name ( runner_generator ) #NEWLINE# old_make_result = getattr ( runner , method_name ) #NEWLINE# runner . logger = logger #NEWLINE# def _instrumented_make_result( self ) : #NEWLINE# #INDENT# result = old_make_result ( ) #NEWLINE# return _instrument_result ( logger , result ) #NEWLINE# #UNINDENT# setattr ( runner , method_name , MethodType ( _instrumented_make_result , runner ) ) #NEWLINE# return runner