Skip to content

Commit 36abf38

Browse files
committed
DOC: clarify that COVERAGE_START_PROCESS needs to be set in child processes with patch=subprocess
1 parent d2e73f1 commit 36abf38

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

doc/config.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -460,9 +460,8 @@ Available patches:
460460
This patch configures Python to start coverage automatically, and will apply
461461
to processes created with :mod:`subprocess`, :func:`os.system`, or one of the
462462
:func:`execv <python:os.execl>` or :func:`spawnv <python:os.spawnl>` family
463-
of functions. If an ``exec*e`` or ``spawn*e`` function is used, the new
464-
environment must copy over the ``COVERAGE_PROCESS_START`` environment
465-
variable.
463+
of functions. The ``COVERAGE_PROCESS_START`` value must be copied from the
464+
current environment into the new environment or set.
466465

467466
The ``subprocess`` patch sets :ref:`parallel = True <config_run_parallel>`
468467
and will require combining data files before reporting. See

0 commit comments

Comments
 (0)