diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2011-05-31 23:12:40 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2011-05-31 23:12:40 -0400 |
commit | 139497ac9cf495a13e9f3323db489bf56054f5d4 (patch) | |
tree | eae49dfbee407d333ef61618351936ded5945297 /test/farm/html/src/partial.py | |
parent | 61deec574e9d0181ad986d1276e3d57e8427930d (diff) | |
download | python-coveragepy-git-139497ac9cf495a13e9f3323db489bf56054f5d4.tar.gz |
Better handling of the partial-branch exclusion regexes. Finishes issue #113.
Diffstat (limited to 'test/farm/html/src/partial.py')
-rw-r--r-- | test/farm/html/src/partial.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/farm/html/src/partial.py b/test/farm/html/src/partial.py new file mode 100644 index 00000000..9126844f --- /dev/null +++ b/test/farm/html/src/partial.py @@ -0,0 +1,19 @@ +# partial branches + +a = 3 + +while True: + break + +while 1: + break + +while a: # pragma: no branch + break + +if 0: + never_happen() + +if 1: + a = 13 + |