'the server thread exits even if an exception exits the context manager'

def test_server_finishes_on_error(self):

    server = Server.basic_response_server()
    with pytest.raises(Exception):
        with server:
            raise Exception()
    assert (len(server.handler_results) == 0)
