summaryrefslogtreecommitdiffstats
path: root/Lib/bsddb/test/test_distributed_transactions.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/bsddb/test/test_distributed_transactions.py')
-rw-r--r--Lib/bsddb/test/test_distributed_transactions.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/Lib/bsddb/test/test_distributed_transactions.py b/Lib/bsddb/test/test_distributed_transactions.py
index a36bd66..1711fc5 100644
--- a/Lib/bsddb/test/test_distributed_transactions.py
+++ b/Lib/bsddb/test/test_distributed_transactions.py
@@ -88,9 +88,9 @@ class DBTxn_distributed(unittest.TestCase):
# Get "to be recovered" transactions but
# let them be garbage collected.
recovered_txns=self.dbenv.txn_recover()
- self.assertEquals(self.num_txns,len(recovered_txns))
+ self.assertEqual(self.num_txns,len(recovered_txns))
for gid,txn in recovered_txns :
- self.assert_(gid in txns)
+ self.assertTrue(gid in txns)
del txn
del recovered_txns
@@ -99,7 +99,7 @@ class DBTxn_distributed(unittest.TestCase):
# Get "to be recovered" transactions. Commit, abort and
# discard them.
recovered_txns=self.dbenv.txn_recover()
- self.assertEquals(self.num_txns,len(recovered_txns))
+ self.assertEqual(self.num_txns,len(recovered_txns))
discard_txns=set()
committed_txns=set()
state=0
@@ -122,7 +122,7 @@ class DBTxn_distributed(unittest.TestCase):
# Verify the discarded transactions are still
# around, and dispose them.
recovered_txns=self.dbenv.txn_recover()
- self.assertEquals(len(discard_txns),len(recovered_txns))
+ self.assertEqual(len(discard_txns),len(recovered_txns))
for gid,txn in recovered_txns :
txn.abort()
del txn
@@ -133,8 +133,8 @@ class DBTxn_distributed(unittest.TestCase):
# Be sure there are not pending transactions.
# Check also database size.
recovered_txns=self.dbenv.txn_recover()
- self.assert_(len(recovered_txns)==0)
- self.assertEquals(len(committed_txns),self.db.stat()["nkeys"])
+ self.assertTrue(len(recovered_txns)==0)
+ self.assertEqual(len(committed_txns),self.db.stat()["nkeys"])
class DBTxn_distributedSYNC(DBTxn_distributed):
nosync=False