
July 15, 2008
7:23 a.m.
On Mon, Jul 14, 2008 at 6:43 PM, Michael Foord <fuzzyman@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. -- Cheers, Benjamin Peterson "There's no place like 127.0.0.1."