#NEWLINE# def run( self , test ) : #NEWLINE# #INDENT# 'Run the given test case or test suite.' #NEWLINE# old_stdout = sys . stdout #NEWLINE# result = PipedTestResult ( self . stream , old_stdout . use_old_discovery ) #NEWLINE# test ( result ) #NEWLINE# self . stream . write ( ( self . END_TEST_RESULTS + '\n' ) ) #NEWLINE# self . stream . flush ( ) #NEWLINE# sys . stdout = old_stdout #NEWLINE# return result