(*args, **kwargs)
| 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): |