New submission from Benjamin Peterson <benja...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue8388> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com