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
commitb9762a056df6ca30415b59656141af8144cb95df (patch)
tree254c7d6548b3bfe0b17a8ee3d6a3485085016394
parentb8e3a45d4fce2029dac7f60e2e3aaeec34cb4bd5 (diff)
downloadpython-coveragepy-b9762a056df6ca30415b59656141af8144cb95df.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 32f7b92..19be019 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.