MCPcopy
hub / github.com/psycopg/psycopg / test_cant_reenter

Function test_cant_reenter

tests/test_transaction_async.py:45–51  ·  view source on GitHub ↗
(aconn)

Source from the content-addressed store, hash-verified

43
44
45async def test_cant_reenter(aconn):
46 async with aconn.transaction() as tx:
47 pass
48
49 with pytest.raises(TypeError):
50 async with tx:
51 pass
52
53
54async def test_begins_on_enter(aconn, apipeline):

Callers

nothing calls this directly

Calls 1

transactionMethod · 0.45

Tested by

no test coverage detected