Skip to content

Commit 4f770ca

Browse files
committed
temp: possible doc changes?
1 parent 2e8c191 commit 4f770ca

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

doc/config.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@ option, or coverage.py will produce very wrong results.
132132
.. _gevent: http://www.gevent.org/
133133
.. _eventlet: http://eventlet.net/
134134

135+
See :ref:subprocess: for details of multi-process measurement.
136+
135137
Before version 4.2, this option only accepted a single string.
136138

137139
.. versionadded:: 4.0

doc/subprocess.rst

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,24 @@ the name of the :ref:`configuration file <config>` to use.
2525

2626
.. note::
2727

28-
If you have subprocesses because you are using :mod:`multiprocessing
28+
If you have subprocesses created with :mod:`multiprocessing
2929
<python:multiprocessing>`, the ``--concurrency=multiprocessing``
3030
command-line option should take care of everything for you. See
3131
:ref:`cmd_run` for details.
3232

33+
.. note::
34+
35+
Stopping a multiprocessing process with :meth:`terminate
36+
<python:multiprocessing.Process.terminate>` or :meth:`kill
37+
<python:multiprocessng.Process.kill>` will prevent recording data from the
38+
stopped process. Those methods don't run clean-up code in the process.
39+
3340
When using this technique, be sure to set the parallel option to true so that
3441
multiple coverage.py runs will each write their data to a distinct file.
3542

3643

37-
Configuring Python for sub-process coverage
38-
-------------------------------------------
44+
Configuring Python for sub-process measurement
45+
----------------------------------------------
3946

4047
Measuring coverage in sub-processes is a little tricky. When you spawn a
4148
sub-process, you are invoking Python to run your program. Usually, to get

0 commit comments

Comments
 (0)