How do you test for an exception that needs to occur in the __init__
of a ray actor class? I’m using unittest.
I tried
with self.assertRaises(TypeError):
ray.get(actor_ref)
But it gives a ValueError: 'object_refs' must either be an ObjectRef or a list of ObjectRefs.
. Meanwhile, trying to trigger some random method with ray.get(r.dummy_method.remote())
just hangs.