Example #1
0
def test_delayed_exception():
    """Test that DelayedException stores and reraises a stored exception."""
    ve = ValueError()
    de = runner.DelayedException(ve)
    with pytest.raises(ValueError):
        de.reraise()
Example #2
0
 def imap_unordered(self, *args, **kwargs):
     yield runner.DelayedException(ValueError())