summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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