[issue1705520] API for excluding methods from unittest stack traces
Michael Foord
report at bugs.python.org
Mon Nov 29 02:02:09 CET 2010
Michael Foord <michael at voidspace.org.uk> added the comment:
__unittest needs to die (with appropriate deprecation).
I agree that a nicer API for marking functions and methods as needing to be excluded from unittest stacktraces would be useful. A decorator is a good way to expose that API to developers. Internally unittest could use the new API and __unittest can go away.
Introspecting stack frames is a bad way to implement this, as it doesn't play well with other implementations (like IronPython which doesn't have introspectable Python stack frames by default).
----------
assignee: purcell -> michael.foord
title: pyunit should allow __unittest in locals to trim stackframes -> API for excluding methods from unittest stack traces
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1705520>
_______________________________________
More information about the Python-bugs-list
mailing list