]> granicus.if.org Git - python/commitdiff
Don't raise a string exception, they don't work anymore.
authorNeal Norwitz <nnorwitz@gmail.com>
Sun, 14 Oct 2007 18:30:21 +0000 (18:30 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Sun, 14 Oct 2007 18:30:21 +0000 (18:30 +0000)
Lib/bsddb/test/test_dbtables.py

index 67005430b62ae2ee643a55ec09cf45b13404c6f4..1debb894aaed78246df6da20c7371e8e3bd1d3b7 100644 (file)
@@ -111,7 +111,7 @@ class TableDBTestCase(unittest.TestCase):
         else :
             if verbose:
                 print "values= %r" % (values,)
-            raise "Wrong values returned!"
+            raise RuntimeError("Wrong values returned!")
 
     def test03(self):
         tabname = "test03"