#NEWLINE# def Failure_repr_should_present_stdout_when_pty_was_used( self ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# self . _runner ( exits = 1 , out = 'ohnoz' ) . run ( _ , hide = True , pty = True ) #NEWLINE# assert false #NEWLINE# #UNINDENT# except Failure as f : #NEWLINE# #INDENT# r = repr ( f ) #NEWLINE# err = "Sentinel 'ohnoz' not found in {0!r}" . format ( r ) #NEWLINE# assert ( 'ohnoz' in r ) , err