summaryrefslogtreecommitdiff
path: root/doc/cmd.rst
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2019-12-27 17:35:51 -0500
committerNed Batchelder <ned@nedbatchelder.com>2019-12-27 17:52:41 -0500
commit16ef35f9be4f7b225750fac576e0f6245a100752 (patch)
treeda5b7114396ed4a74b751130f3bfd12817bd24e8 /doc/cmd.rst
parentcc989e2547fa796c84ba55b07dcf55d509c077f1 (diff)
downloadpython-coveragepy-git-16ef35f9be4f7b225750fac576e0f6245a100752.tar.gz
Warn if two things change the dynamic context. #901
Diffstat (limited to 'doc/cmd.rst')
-rw-r--r--doc/cmd.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/cmd.rst b/doc/cmd.rst
index 8b0e2f24..3933c567 100644
--- a/doc/cmd.rst
+++ b/doc/cmd.rst
@@ -179,6 +179,12 @@ could affect the measurement process. The possible warnings include:
are meant to focus measurement on a particular part of your source code, so
``--include`` is ignored in favor of ``--source``.
+* ``Conflicting dynamic contexts (dynamic-conflict)`` |br|
+ The ``[run] dynamic_context`` option is set in the configuration file, but
+ something (probably a test runner plugin) is also calling the
+ :meth:`.Coverage.switch_context` function to change the context. Only one of
+ these mechanisms should be in use at a time.
+
Individual warnings can be disabled with the `disable_warnings
<config_run_disable_warnings>`_ configuration setting. To silence "No data was
collected," add this to your .coveragerc file::