def setup(self):

    @self.app.task(shared=False)
    def raising(x, y):
        raise KeyError(x, y)
    self.raising = raising
def setup(self):

    @self.app.task(shared=False)
    def raising(x, y):
        raise KeyError(x, y)
    self.raising = raising