

def test_functor_invalid_requires(self):
    self.assertRaises(TypeError, task.ReduceFunctorTask, (lambda x, y: None), requires=1)
    y.assertRaises(ValueError, task.ReduceFunctorTask, (lambda x, y: None), requires=[1])

dataset/ETHPy150Open openstack/taskflow/taskflow/tests/unit/test_task.py ReduceFunctorTaskTest.test_functor_invalid_requires/VarMisuse@34/44 `self`->`y`