Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog/1446.doc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add the missing imports to the per-worker logging example so it can be copied into ``conftest.py``.
4 changes: 4 additions & 0 deletions docs/how-to.rst
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,10 @@ Example:
.. code-block:: python

# content of conftest.py
import logging
import os


def pytest_configure(config):
worker_id = os.environ.get("PYTEST_XDIST_WORKER")
if worker_id is not None:
Expand Down