MCPcopy Create free account
hub / github.com/celery/celery / raises_KeyError

Method raises_KeyError

t/unit/worker/test_worker.py:689–694  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

687 c.iterations = 0
688
689 def raises_KeyError(*args, **kwargs):
690 c.iterations += 1
691 if c.qos.prev != c.qos.value:
692 c.qos.update()
693 if c.iterations >= 2:
694 raise KeyError('foo')
695
696 c.loop = raises_KeyError
697 with pytest.raises(KeyError):

Callers

nothing calls this directly

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected