diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2011-12-14 19:07:49 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2011-12-14 19:07:49 -0500 |
commit | 105aea7eba5d1f062e41a1f1052823c89c1d0908 (patch) | |
tree | cfe393f9ee9ccf3028c1bca7cd2c434179c27bfd /doc/branch.rst | |
parent | 639e317b17714464dea4ca763ffe6484b9cc7a20 (diff) | |
download | python-coveragepy-git-105aea7eba5d1f062e41a1f1052823c89c1d0908.tar.gz |
Guido pointed out that these docs were wrong.
Diffstat (limited to 'doc/branch.rst')
-rw-r--r-- | doc/branch.rst | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/branch.rst b/doc/branch.rst index d9b61629..3ee09aa3 100644 --- a/doc/branch.rst +++ b/doc/branch.rst @@ -7,6 +7,7 @@ Branch coverage measurement :history: 20091127T201300, new for version 3.2 :history: 20100725T211700, updated for 3.4. :history: 20110604T181700, updated for 3.5. +:history: 20111214T181800, Fix a bug that Guido pointed out. .. highlight:: python :linenothreshold: 5 @@ -109,12 +110,12 @@ tell coverage.py that you don't want them flagged by marking them with a pragma:: i = 0 - while i < 999999999: # pragma: no partial + while i < 999999999: # pragma: no branch if eventually(): break Here the while loop will never complete because the break will always be taken at some point. Coverage.py can't work that out on its own, but the -"no partial" pragma indicates that the branch is known to be partial, and +"no branch" pragma indicates that the branch is known to be partial, and the line is not flagged. |