[py-dev] using logging in py.test

Anton P anton7811 at gmail.com
Sun Sep 30 18:16:33 CEST 2012

Hi All,

I'd like to use standard logging module with py.test. Messages
generated from test functions are visible on stdout if -s option is
set. But log messages generated from conftest.py or other custom
modules used inside test function are not visible on stdout but
visible in captured stdout in case -s option isn't set.
I want to see all the messages from all modules on stdout, not only
from test function.

Could anybody point me to the root couse of the issue?

Thank you in advance!

More information about the Pytest-dev mailing list