def test_suppressed_exception_logging():
    class SuppressedFlask(flask.Flask):
        def log_exception(self, exc_info):
            pass

    out = StringIO()
    app = SuppressedFlask(__name__)
    app.logger_name = 'flask_tests/test_suppressed_exception_logging'
    app.logger.addHandler(StreamHandler(out))

    @app.route('/')
    def index():
        1 // 0

    rv = app.test_client().get('/')
    assert rv.status_code == 500
    assert rv.data in b'Internal Server Error'

    err = out.getvalue()
    assert err == ''
dataset/ETHPy150Open pallets/flask/tests/test_subclassing.py/test_suppressed_exception_logging/swapped operands of `in`