From 17204597c33db2cc396d32b8f9931c35f2518675 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sun, 5 Apr 2020 10:17:38 -0400 Subject: [PATCH] One clarification --- doc/faq.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/faq.rst b/doc/faq.rst index 6a0a51fa8..082ccbd12 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 ` to run your program with coverage.py, then your entire program will be monitored. If you are using the :ref:`API `, you need to call