#NEWLINE# def addUnexpectedSuccess( self , test ) : #NEWLINE# #INDENT# super ( PipedTestResult , self ) . addUnexpectedSuccess ( test ) #NEWLINE# body = { #NEWLINE# #INDENT# 'status' : 'u' , #NEWLINE# 'end_time' : time . time ( ) , #NEWLINE# 'description' : self . description ( test ) , #NEWLINE# 'output' : self . _stdout . getvalue ( ) , #NEWLINE# #UNINDENT# } #NEWLINE# self . stream . write ( ( '%s\n' % json . dumps ( body ) ) ) #NEWLINE# self . stream . flush ( ) #NEWLINE# self . _current_test = None