From 139497ac9cf495a13e9f3323db489bf56054f5d4 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Tue, 31 May 2011 23:12:40 -0400 Subject: Better handling of the partial-branch exclusion regexes. Finishes issue #113. --- coverage/config.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'coverage/config.py') 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):', ] -- cgit v1.2.1