From a65e94c1bf30259e0367d136054328c107ff41da Mon Sep 17 00:00:00 2001 From: Collin Winter Date: Wed, 22 Aug 2007 21:45:20 +0000 Subject: Convert raise statements in bsddb. --- Lib/bsddb/test/test_basics.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Lib/bsddb/test/test_basics.py') 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): -- cgit v1.2.1