summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2020-04-05 10:17:38 -0400
committerNed Batchelder <ned@nedbatchelder.com>2020-04-05 10:17:38 -0400
commit17204597c33db2cc396d32b8f9931c35f2518675 (patch)
treea29a7a5ac5fcc2dc82fe99a88c7c70f1d0e07856
parentb890a3d9f2b7a6da7d177b15b9c93e8e43810afd (diff)
downloadpython-coveragepy-git-17204597c33db2cc396d32b8f9931c35f2518675.tar.gz
One clarification
-rw-r--r--doc/faq.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/faq.rst b/doc/faq.rst
index 6a0a51fa..082ccbd1 100644
--- a/doc/faq.rst
+++ b/doc/faq.rst
@@ -31,6 +31,8 @@ The definition lines are executed without coverage measurement, then
coverage.py is started, then the function is called. This means the body is
measured, but the definition of the function itself is not.
+The same thing can happen with the bodies of classes.
+
To fix this, start coverage.py earlier. If you use the :ref:`command line
<cmd>` to run your program with coverage.py, then your entire program will be
monitored. If you are using the :ref:`API <api>`, you need to call