Commit 3d6027db authored by Gregory P. Smith's avatar Gregory P. Smith

fix test, use bytes not unicode and let the test raise its internal exception

rather than just complaining about stderr not being what we expected masking
the true problem.
parent df3f2ef9
......@@ -192,7 +192,7 @@ class BtreeExceptionsTestCase (AbstractBtreeKeyCompareTestCase):
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...
self.addDataToDB ([b'a', b'b', b'c']) # this should raise, but...
self.finishTest ()
def test_compare_function_exception(self):
......@@ -210,7 +210,7 @@ class BtreeExceptionsTestCase (AbstractBtreeKeyCompareTestCase):
return l
self.createDB (bad_comparator)
#print "\n*** test should print 2 errors about returning an int ***"
self.addDataToDB (['a', 'b', 'c']) # this should raise, but...
self.addDataToDB ([b'a', b'b', b'c']) # this should raise, but...
self.finishTest ()
def test_compare_function_bad_return(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment