#NEWLINE# def app_without_terminal( self ) : #NEWLINE# #INDENT# if ( not self . app . has_terminal ( ) ) : #NEWLINE# #INDENT# return terminal . app #NEWLINE# #UNINDENT# with patch ( 'glue.app.qt.terminal.glue_terminal' ) as terminal : #NEWLINE# #INDENT# terminal . side_effect = Exception ( 'disabled' ) #NEWLINE# app = GlueApplication ( ) #NEWLINE# app . _create_terminal ( ) #NEWLINE# return app