Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/s/p/spinoff-0.7.18/spinoff/util/testing/actor.py   spinoff(Download)
from spinoff.actor.events import Events, Error
 
from .common import assert_raises
 
 
def expect_failure(exc, message=None, timeout=None):
    with assert_raises(exc, message=message) as basket:
        err = Events.consume_one(Error)
        yield basket
        try:

src/s/p/spinoff-HEAD/spinoff/util/testing/actor.py   spinoff(Download)
from spinoff.actor.events import Events, Error
 
from .common import assert_raises
 
 
def expect_failure(exc, message=None, timeout=None):
    with assert_raises(exc, message=message) as basket:
        err = Events.consume_one(Error)
        yield basket
        try: