docs: Remove unused statement in one-log-per-worker example

This commit is contained in:
Aarni Koskela 2023-02-13 15:38:59 +02:00 committed by GitHub
parent 2329d3454f
commit 5e795d88e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -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",