[issue22937] unittest errors can't show locals

2015-03-15 Thread Robert Collins
Robert Collins added the comment: Fixed (patch referenced 22936) -- resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue22937] unittest errors can't show locals

2014-11-26 Thread Guido van Rossum
Guido van Rossum added the comment: Sorry, I missed the part where you said "we can't depend on PyPI". There already is something in the stdlib that may be close enough to what you're looking for -- checkout cgitb.py. The following might even work: import cgitb cgitb.enable(format='text') Th

[issue22937] unittest errors can't show locals

2014-11-26 Thread Guido van Rossum
Guido van Rossum added the comment: Note that IIRC py.test (a 3rd party module) will show you additional information in the traceback. SO it is definitely possible. -- nosy: +gvanrossum ___ Python tracker

[issue22937] unittest errors can't show locals

2014-11-24 Thread Robert Collins
New submission from Robert Collins: >From https://github.com/testing-cabal/testtools/issues/111 - any code that is >data dependent can be hard to diagnose from a backtrace alone. Many unittest >and server environments address this by doing custom tracebacks that include >locals. To address th