MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_async_error

Method test_async_error

test/base/test_concurrency.py:49–54  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

47
48 @async_test
49 async def test_async_error(self):
50 async def err():
51 raise ValueError("an error")
52
53 with expect_raises_message(ValueError, "an error"):
54 await greenlet_spawn(go, run1, err)
55
56 @async_test
57 async def test_propagate_cancelled(self):

Callers

nothing calls this directly

Calls 2

expect_raises_messageFunction · 0.90
greenlet_spawnFunction · 0.90

Tested by

no test coverage detected