diff --git a/docs/how-to.rst b/docs/how-to.rst index bf8362af..aa72ad0a 100644 --- a/docs/how-to.rst +++ b/docs/how-to.rst @@ -221,7 +221,6 @@ Example: def pytest_configure(config): worker_id = os.environ.get("PYTEST_XDIST_WORKER") if worker_id is not None: - log_file = config.getini("worker_log_file") logging.basicConfig( format=config.getini("log_file_format"), filename=f"tests_{worker_id}.log",