configtypes: Add a "# pragma: no cover"

This commit is contained in:
Florian Bruhin 2016-09-26 08:25:54 +02:00
parent aec1cf3842
commit 68e60ecc3c

View File

@ -61,7 +61,7 @@ def _validate_regex(pattern, flags):
except re.error as e: except re.error as e:
raise configexc.ValidationError( raise configexc.ValidationError(
pattern, "must be a valid regex - " + str(e)) pattern, "must be a valid regex - " + str(e))
except RuntimeError: except RuntimeError: # pragma: no cover
raise configexc.ValidationError( raise configexc.ValidationError(
pattern, "must be a valid regex - recursion depth exceeded") pattern, "must be a valid regex - recursion depth exceeded")