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 | ca6c376c36b04287bf414731606377778e09de33 (patch) | |
tree | 61be39ca99964a06815e93f902a5b3b91900d6f2 /doc/branch.rst | |
parent | 6c901f5201dffac37ef7b88f69718f1f88fcaad1 (diff) | |
download | python-coveragepy-git-ca6c376c36b04287bf414731606377778e09de33.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 40e0a066..d9b61629 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. |