[Python-ideas] hookable assertions - to support testing utilities and debugging

Ronny Pfannschmidt opensource at ronnypfannschmidt.de
Thu Feb 19 12:16:31 CET 2015


Im aware, my intent is to standardize the mechanism and push it into the 
language,

I'm already involved in the py.test development.

On Thursday, February 19, 2015 12:12:23 PM CEST, Nick Coghlan wrote:
> On 19 February 2015 at 21:05, Steven D'Aprano <steve at pearwood.info> wrote:
>> On Thu, Feb 19, 2015 at 08:25:34AM +0100, Ronny Pfannschmidt wrote: ...
>
> py.test is the one to look at for this:
> http://pytest.org/latest/assert.html#assert-with-the-assert-statement
>
> It (optionally) rewrites the AST for assert statements to make them
> suitable for testing purposes rather than being optional runtime
> integrity checks.
>
> Cheers,
> Nick.
>


More information about the Python-ideas mailing list