def test_gevent_schedule_action_due(self):
        scheduler = GEventScheduler()
        starttime = datetime.now()
        endtime = [None]

        def action(scheduler, state):
            endtime[0] = datetime.now()

        scheduler.schedule_relative(0.2, action)

        gevent.sleep(0.3)
        diff = starttime-endtime[0]
        assert(diff > timedelta(seconds=0.18))
dataset/ETHPy150Open ReactiveX/RxPY/tests/test_concurrency/test_mainloopscheduler/test_geventscheduler.py/TestGEventScheduler.test_gevent_schedule_action_due/swapped operands of `-`