MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / reap_xid

Method reap_xid

test/dialect/postgresql/test_dialect.py:1674–1681  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1672
1673 @testing.fixture(autouse=True)
1674 def reap_xid(self):
1675 with config.db.connect() as connection:
1676 before = connection.recover_twophase()
1677 yield
1678 with config.db.connect() as connection:
1679 for xid in connection.recover_twophase():
1680 if xid not in before:
1681 connection.rollback_prepared(xid, recover=True)
1682
1683 @testing.variation("mode", ["noid", "withid", "driverid"])
1684 @testing.variation("commit", [True, False])

Callers

nothing calls this directly

Calls 3

recover_twophaseMethod · 0.80
rollback_preparedMethod · 0.80
connectMethod · 0.45

Tested by

no test coverage detected