def test_single_or_default_async_predicate_throw(self):
        ex = 'ex'
        scheduler = TestScheduler()
        xs = scheduler.create_hot_observable(on_next(150, 1), on_error(210, ex))
        
        def create():
            def predicate(x):
                return 10 > x
            return xs.single_or_default(predicate, 0)
    
        res = scheduler.start(create=create)
        
        res.messages.assert_equal(on_error(210, ex))
        xs.subscriptions.assert_equal(subscribe(200, 210))
dataset/ETHPy150Open ReactiveX/RxPY/tests/test_observable/test_singleordefault.py/TestSingleOrDefault.test_single_or_default_async_predicate_throw/swapped operands of `>`