summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2009-11-10 22:39:07 -0500
committerNed Batchelder <ned@nedbatchelder.com>2009-11-10 22:39:07 -0500
commit4db28b8d5ec61d78a4f97436ed8f7cf8203c996e (patch)
treefd935201789d2e8af9a64d972ef6e1efadf2edf8
parent5915058524986a50dccc6ffe5eb8a655c6c9a312 (diff)
downloadpython-coveragepy-git-4db28b8d5ec61d78a4f97436ed8f7cf8203c996e.tar.gz
Latest tweaks
-rw-r--r--doc/branch.rst5
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/branch.rst b/doc/branch.rst
index 32f7b923..19be019a 100644
--- a/doc/branch.rst
+++ b/doc/branch.rst
@@ -20,8 +20,9 @@ For example::
In this code, the if on line 2 could branch to either line 3 or line 4.
Statement coverage would show all lines of the function as executed. But the
-if is always true, so line 2 never jumps to line 4. In this code, that
-path would cause an error.
+if is always true, so line 2 never jumps to line 4. Even though line 4 is
+executed, coverage.py knows that it was never because of a branch from line
+2.
Branch coverage would flag this code as not fully covered because of the
missing jump from line 2 to line 4.