

def test_materialize_dematerialize_throw(self):
    ex = 'ex'
    scheduler = TestScheduler()
    xs = scheduler.create_hot_observable(on_next(150, 1), on_error(250, ex))

    def create():
        return xs.materialize().dematerialize()
    results = ex.start(create).messages
    assert (len(results) == 1)
    assert ((results[0].value.kind == 'E') and (results[0].value.exception == ex) and (results[0].time == 250))

dataset/ETHPy150Open ReactiveX/RxPY/tests/test_observable/test_materialize.py TestMaterialize.test_materialize_dematerialize_throw/VarMisuse@63/86 `scheduler`->`ex`