summaryrefslogtreecommitdiff
path: root/Lib/bsddb/test/test_basics.py
diff options
context:
space:
mode:
authorCollin Winter <collinw@gmail.com>2007-08-22 21:45:20 +0000
committerCollin Winter <collinw@gmail.com>2007-08-22 21:45:20 +0000
commita65e94c1bf30259e0367d136054328c107ff41da (patch)
tree3e52a58cdad9ac85144590d72641e2f065d7382e /Lib/bsddb/test/test_basics.py
parent865ea892018f4ff823496b2d0636c47c7ef06231 (diff)
downloadcpython-git-a65e94c1bf30259e0367d136054328c107ff41da.tar.gz
Convert raise statements in bsddb.
Diffstat (limited to 'Lib/bsddb/test/test_basics.py')
-rw-r--r--Lib/bsddb/test/test_basics.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/bsddb/test/test_basics.py b/Lib/bsddb/test/test_basics.py
index 7bfe03bdce..d7b2d2fc38 100644
--- a/Lib/bsddb/test/test_basics.py
+++ b/Lib/bsddb/test/test_basics.py
@@ -735,7 +735,7 @@ class BasicTransactionTestCase(BasicTestCase):
except db.DBError as e:
pass
else:
- raise RuntimeError, "DBTxn.abort() called after DB_TXN no longer valid w/o an exception"
+ raise RuntimeError("DBTxn.abort() called after DB_TXN no longer valid w/o an exception")
txn = self.env.txn_begin()
txn.commit()
@@ -744,7 +744,7 @@ class BasicTransactionTestCase(BasicTestCase):
except db.DBError as e:
pass
else:
- raise RuntimeError, "DBTxn.commit() called after DB_TXN no longer valid w/o an exception"
+ raise RuntimeError("DBTxn.commit() called after DB_TXN no longer valid w/o an exception")
class BTreeTransactionTestCase(BasicTransactionTestCase):