MCPcopy Create free account
hub / github.com/OpenHands/OpenHands / test_call_async_from_sync_error

Function test_call_async_from_sync_error

tests/unit/utils/test_async_utils.py:114–119  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

112
113
114def test_call_async_from_sync_error():
115 async def dummy(value: int):
116 raise ValueError()
117
118 with pytest.raises(ValueError):
119 call_async_from_sync(dummy, 0, 3)
120
121
122def test_call_async_from_sync_background_tasks():

Callers

nothing calls this directly

Calls 1

call_async_from_syncFunction · 0.90

Tested by

no test coverage detected