Skip to content

Commit 1720459

Browse files
committed
One clarification
1 parent b890a3d commit 1720459

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doc/faq.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ The definition lines are executed without coverage measurement, then
3131
coverage.py is started, then the function is called. This means the body is
3232
measured, but the definition of the function itself is not.
3333

34+
The same thing can happen with the bodies of classes.
35+
3436
To fix this, start coverage.py earlier. If you use the :ref:`command line
3537
<cmd>` to run your program with coverage.py, then your entire program will be
3638
monitored. If you are using the :ref:`API <api>`, you need to call

0 commit comments

Comments
 (0)