summaryrefslogtreecommitdiff
path: root/coverage/config.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2011-05-31 23:12:40 -0400
committerNed Batchelder <ned@nedbatchelder.com>2011-05-31 23:12:40 -0400
commit139497ac9cf495a13e9f3323db489bf56054f5d4 (patch)
treeeae49dfbee407d333ef61618351936ded5945297 /coverage/config.py
parent61deec574e9d0181ad986d1276e3d57e8427930d (diff)
downloadpython-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.py6
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):',
]