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 | 90df419fb875c0bd8e1f5534a16441e0caeef1b8 (patch) | |
tree | 68ad41c6b664a7d4f76d1e2de691e5f27836b63a /coverage/config.py | |
parent | 5055b918685108814f1850a227402576ad66074b (diff) | |
download | python-coveragepy-90df419fb875c0bd8e1f5534a16441e0caeef1b8.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 4507bc2..f842964 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):', ] |