[issue1705520] API for excluding methods from unittest stack traces

2021-09-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What to do with comprehensions and classes? Corresponding code objects are not easily accessible and they do not have corresponding function. It would be difficult to use the locals of the frame with comprehensions. Maybe use per-module registries of

[issue1705520] API for excluding methods from unittest stack traces

2014-02-03 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- nosy: -BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1705520 ___ ___

[issue1705520] API for excluding methods from unittest stack traces

2012-09-09 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +Julian stage: test needed - needs patch versions: +Python 3.4 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1705520

[issue1705520] API for excluding methods from unittest stack traces

2010-12-08 Thread Dave Malcolm
Changes by Dave Malcolm dmalc...@redhat.com: -- nosy: +dmalcolm ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1705520 ___ ___ Python-bugs-list

[issue1705520] API for excluding methods from unittest stack traces

2010-12-08 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: So from the stackframe you can only get to the code object not to the function object and although the code object is also reachable from a decorator it isn't mutable so we can't mark it in any way. We could in theory 're-build' the

[issue1705520] API for excluding methods from unittest stack traces

2010-12-08 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Maybe a global registry... implemented with a WeakKeyDictionary? -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1705520

[issue1705520] API for excluding methods from unittest stack traces

2010-12-08 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Global registry of code objects, hmmm... Could work. I'll prototype it and test it with IronPython / Jython / pypy. -- ___ Python tracker rep...@bugs.python.org

[issue1705520] API for excluding methods from unittest stack traces

2010-11-28 Thread Michael Foord
Michael Foord mich...@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