MCPcopy
hub / github.com/psycopg/psycopg / test_tpc_begin

Method test_tpc_begin

tests/dbapi20_tpc.py:48–57  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

46 con.close()
47
48 def test_tpc_begin(self):
49 con = self.connect()
50 try:
51 xid = self.make_xid(con)
52 try:
53 con.tpc_begin(xid)
54 except self.driver.NotSupportedError:
55 self.fail("Driver does not support tpc_begin()")
56 finally:
57 con.close()
58
59 def test_tpc_commit_without_prepare(self):
60 con = self.connect()

Callers

nothing calls this directly

Calls 5

connectMethod · 0.95
make_xidMethod · 0.95
tpc_beginMethod · 0.45
failMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected