diff options
Diffstat (limited to 'Lib/bsddb/test/test_basics.py')
-rw-r--r-- | Lib/bsddb/test/test_basics.py | 4 |
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): |