

@silencestderr
def test_broken_app(self):

    def broken_app(environ, start_response):
        (1 // 0)
    (server, addr) = run_dev_server(broken_app)
    try:
        urlopen(('http://%s/?foo=bar&baz=blah' % self)).read()
    except HTTPError as e:
        rv = e.read()
        assert (b'Internal Server Error' in rv)
    else:
        assert False, 'expected internal server error'

dataset/ETHPy150Open GeekTrainer/Flask/Work/Trivia - Module 5/env/Lib/site-packages/werkzeug/testsuite/serving.py ServingTestCase.test_broken_app/VarMisuse@51/77 `addr`->`self`