You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having some issues with my logs being gobbled up after I execute pytest.main. But it seems to be related to using logging.config.dictConfig. When I manually configure my logging, it seems to work.
Overall, I'm just confused as to what's going on. Here's a sample. logging_option1 works while logging_option2 does not.
Hmm unfortunately logging configuration is always global so it might be tricky to "undo" the changes in configuration that pytest does to capture logging. A few things to try:
Disable the logging plugin in case you are not really interested on it: returncode = pytest.main(["test_pytestmain.py", '-p', 'no:logging'])
I'm having some issues with my logs being gobbled up after I execute
pytest.main
. But it seems to be related to usinglogging.config.dictConfig
. When I manually configure my logging, it seems to work.Overall, I'm just confused as to what's going on. Here's a sample.
logging_option1
works whilelogging_option2
does not.The text was updated successfully, but these errors were encountered: