[Python-Dev] Proposed unittest changes

Benjamin Peterson musiccomposition at gmail.com
Tue Jul 15 02:23:59 CEST 2008

On Mon, Jul 14, 2008 at 6:43 PM, Michael Foord
<fuzzyman at voidspace.org.uk> wrote:
> However, to provide readable output for errors in even simple tests (like a
> == b) py.test does magic with stack frames and code objects - in order to
> discover the objects being compared.

Maybe what we need to do then is make the assert statement more
powerful. I like the idea of having it call a builtin called
__assert__ which is called by the assert statement. The AST for the
node could be attached.

Benjamin Peterson
"There's no place like"

More information about the Python-Dev mailing list