Commit b1274061 authored by Mukund Sivaraman's avatar Mukund Sivaraman
Browse files

[3095] Test the case where nothing is returned

parent 223d4a42
......@@ -48,6 +48,16 @@ class TracebackHandlerTest(unittest.TestCase):
self.assertEqual(42,
isc.util.traceback_handler.traceback_handler(succ))
def test_success_no_returned_value(self):
"""
Test the handler handles the case where main() returns nothing.
"""
def succ():
return
self.assertEqual(None,
isc.util.traceback_handler.traceback_handler(succ))
def test_exception(self):
"""
Test the exception is caught and logged, but not propagated.
......
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