mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Convert raise statements in bsddb.
This commit is contained in:
parent
865ea89201
commit
a65e94c1bf
9 changed files with 33 additions and 33 deletions
|
@ -192,7 +192,7 @@ class BtreeExceptionsTestCase (AbstractBtreeKeyCompareTestCase):
|
|||
if l == r:
|
||||
# pass the set_bt_compare test
|
||||
return 0
|
||||
raise RuntimeError, "i'm a naughty comparison function"
|
||||
raise RuntimeError("i'm a naughty comparison function")
|
||||
self.createDB (bad_comparator)
|
||||
#print "\n*** test should print 2 uncatchable tracebacks ***"
|
||||
self.addDataToDB (['a', 'b', 'c']) # this should raise, but...
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue