[issue8388] None shouldn't be passed to traceback.format_exception
Benjamin Peterson
report at bugs.python.org
Wed Apr 14 01:01:54 CEST 2010
New submission from Benjamin Peterson <benjamin at python.org>:
When porting recent unittest patches to py3k, I encountered a failure in testBufferOutputAddErrorOrFailure. The reason is that the test passes None to traceback.format_exception, which works by accident in 2.x.
I added these lines in _exc_info_to_string to fix it:
chain = exctype is not None
msgLines = traceback.format_exception(exctype, value, tb,
chain=chain)
It would be nice if the nice didn't have to rely on that behavior and that hack could be removed.
----------
assignee: michael.foord
components: Library (Lib)
messages: 103089
nosy: benjamin.peterson, michael.foord
priority: normal
severity: normal
status: open
title: None shouldn't be passed to traceback.format_exception
versions: Python 3.2
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8388>
_______________________________________
More information about the Python-bugs-list
mailing list