Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
"--show-capture=no" option still capture teardown logs. #3816
Hello, I wanted to use --show-capture=no option to hide the captured log.
Without the option the console display:
Using the option the current result is:
The expected result is to not show any captured log at all.
Here some code to reproduce it:
import pytest import logging @pytest.fixture(scope="function", autouse="True") def hook_each_test_(request): logging.error("BEFORE (SETUP)") yield logging.error("AFTER (tearddown)") def test_allure_error(): logging.error("IN TEST") assert True == False
Result without the option:
Result with the option: