MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_sync_error

Method test_sync_error

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

Source from the content-addressed store, hash-verified

78
79 @async_test
80 async def test_sync_error(self):
81 def go():
82 await_(run1())
83 raise ValueError("sync error")
84
85 with expect_raises_message(ValueError, "sync error"):
86 await greenlet_spawn(go)
87
88 @async_test
89 async def test_await_only_no_greenlet(self):

Callers

nothing calls this directly

Calls 2

expect_raises_messageFunction · 0.90
greenlet_spawnFunction · 0.90

Tested by

no test coverage detected