[TIP] Can output of failed py.test instances be configured?

Floris Bruynooghe flub at devork.be
Fri Aug 10 01:41:25 PDT 2012


On 10 August 2012 08:32, Thijs Engels <thijs at buckazoids.com> wrote:
> By default py.test
> (rightfully) shows the whole test function up until the failing assert
> statement. Is it possible to merely show the failing assert statement?

You can use --tb=short or --tb=no, there's a few more values this
could have depending on the version, check --help.  Does that cover
your case?


Regards,
Floris



More information about the testing-in-python mailing list