[pytest-dev] Print statements in teardown_method(self, method)

Marc Abramowitz msabramo at gmail.com
Wed Apr 23 23:08:03 CEST 2014


Did you try `py.test -s`. The -s option prevents the capture of stdout.


On Tue, Apr 22, 2014 at 4:10 AM, Alexander Petrovich <
petrovi4.alexander at gmail.com> wrote:

> Is there any way to get them actually printed? I use pytest to run my
> selenium tests and I got some test failure information printed in teardown,
> such as fail url, fail screenshot path, user, etc. But I can't find any way
> to get them printed. Could you suggest something, please?
>
> --
> With best regards,
> Petrovich Alexander
> QA Automation Engineer
> Smartweb Consulting
>
> _______________________________________________
> Pytest-dev mailing list
> Pytest-dev at python.org
> https://mail.python.org/mailman/listinfo/pytest-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pytest-dev/attachments/20140423/3ff28773/attachment.html>


More information about the Pytest-dev mailing list