Pytest logging ignores options in pytest.ini
问题 I have a test that I am running with: pytest --capture=no --verbose --rootdir=testing/ testing/tests/docker_test.py from /home/user/development/ . The test checks if some containers are running and uses the default logging framework of Python 3.6. The logger inside the test file is configured as follows: logger = logging.getLogger(__name__) logger.setLevel(logging.INFO) logging.basicConfig(level=logging.INFO, stream=sys.stdout, format="%(asctime)s %(levelname)s %(message)s") Inside tests I am