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()
def imap_unordered(self, *args, **kwargs): yield runner.DelayedException(ValueError())