Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
b1274061
Commit
b1274061
authored
Sep 12, 2013
by
Mukund Sivaraman
Browse files
[3095] Test the case where nothing is returned
parent
223d4a42
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/python/isc/util/tests/traceback_handler_test.py
View file @
b1274061
...
...
@@ -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.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment