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 /coverage/config.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 'coverage/config.py')
-rw-r--r-- | coverage/config.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/coverage/config.py b/coverage/config.py index 4507bc22..f842964d 100644 --- a/coverage/config.py +++ b/coverage/config.py @@ -17,10 +17,8 @@ DEFAULT_PARTIAL = [ # These are any Python branching constructs that can't actually execute all # their branches. DEFAULT_PARTIAL_ALWAYS = [ - 'while True:', - 'while 1:', - 'if 0:', - 'if 1:', + 'while (True|1|False|0):', + 'if (True|1|False|0):', ] |