diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2011-06-05 20:46:03 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2011-06-05 20:46:03 -0400 |
commit | c992a1dd947a4545e561ee6da006459280df588e (patch) | |
tree | 4eeb4f063311a2fb08b597850bd072577afda69c /doc/branch.rst | |
parent | a03a226cf3bb62ecc2d484137918222848760c61 (diff) | |
download | python-coveragepy-c992a1dd947a4545e561ee6da006459280df588e.tar.gz |
Tidy up
Diffstat (limited to 'doc/branch.rst')
-rw-r--r-- | doc/branch.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/branch.rst b/doc/branch.rst index 40e0a06..d9b6162 100644 --- a/doc/branch.rst +++ b/doc/branch.rst @@ -103,9 +103,9 @@ Here the while loop will never exit normally, so it doesn't take both of its "if 0:", coverage.py understands what is going on. In these cases, the line will not be marked as a partial branch. -But there are many ways in your own code to write intentionally partial +But there are many ways in your own code to write intentionally partial branches, and you don't want coverage.py pestering you about them. You can -tell coverage.py that you don't want them flagged by marking them with a +tell coverage.py that you don't want them flagged by marking them with a pragma:: i = 0 @@ -114,7 +114,7 @@ pragma:: 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 +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 the line is not flagged. |