<s> """<STR_LIT>""" <EOL> import flask <EOL> from logging import StreamHandler <EOL> from flask . _compat import StringIO <EOL> def test_suppressed_exception_logging ( ) : <EOL> class SuppressedFlask ( flask . Flask ) : <EOL> def log_exception ( self , exc_info ) : <EOL> pass <EOL> out = StringIO ( ) <EOL> app = SuppressedFlask ( __name__ ) <EOL> app . logger_name = '<STR_LIT>' <EOL> app . logger . addHandler ( StreamHandler ( out ) ) <EOL> @ app . route ( '<STR_LIT:/>' ) <EOL> def index ( ) : <EOL> <NUM_LIT:1> // <NUM_LIT:0> <EOL> rv = app . test_client ( ) . get ( '<STR_LIT:/>' ) <EOL> assert rv . status_code == <NUM_LIT> <EOL> assert b'<STR_LIT>' in rv . data <EOL> err = out . getvalue ( ) <EOL> assert err == '<STR_LIT>' </s>
