mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-26 10:53:44 +03:00
Silencing other 2 tests failures due to 2pc disabled in the server.
This commit is contained in:
parent
c79d20855a
commit
9fe0511711
|
@ -1,6 +1,7 @@
|
|||
#!/usr/bin/env python
|
||||
import dbapi20
|
||||
import dbapi20_tpc
|
||||
from test_connection import skip_if_tpc_disabled
|
||||
import unittest
|
||||
import psycopg2
|
||||
|
||||
|
@ -28,6 +29,13 @@ class Psycopg2TPCTests(dbapi20_tpc.TwoPhaseCommitTests):
|
|||
def connect(self):
|
||||
return psycopg2.connect(dsn=tests.dsn)
|
||||
|
||||
@skip_if_tpc_disabled
|
||||
def test_tpc_commit_with_prepare(self):
|
||||
super(Psycopg2TPCTests, self).test_tpc_commit_with_prepare()
|
||||
|
||||
@skip_if_tpc_disabled
|
||||
def test_tpc_rollback_with_prepare(self):
|
||||
super(Psycopg2TPCTests, self).test_tpc_rollback_with_prepare()
|
||||
|
||||
def test_suite():
|
||||
return unittest.TestLoader().loadTestsFromName(__name__)
|
||||
|
|
Loading…
Reference in New Issue
Block a user