diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2018-01-21 12:32:03 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2018-01-21 12:32:03 -0500 |
commit | eaf55bf6d75675220a12b59b348362f2ecaadb9f (patch) | |
tree | 12886e75d8d5879908eff4ebd7a1830e8e631504 /coverage/config.py | |
parent | 60807c8e06b6811f4829b7a871cc6bddbbc004c9 (diff) | |
download | python-coveragepy-eaf55bf6d75675220a12b59b348362f2ecaadb9f.tar.gz |
fail_under can now be a float. #631.
Diffstat (limited to 'coverage/config.py')
-rw-r--r-- | coverage/config.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/coverage/config.py b/coverage/config.py index 500c211..7b8f2bd 100644 --- a/coverage/config.py +++ b/coverage/config.py @@ -199,7 +199,7 @@ class CoverageConfig(object): # Defaults for [report] self.exclude_list = DEFAULT_EXCLUDE[:] - self.fail_under = 0 + self.fail_under = 0.0 self.ignore_errors = False self.report_include = None self.report_omit = None @@ -335,7 +335,7 @@ class CoverageConfig(object): # [report] ('exclude_list', 'report:exclude_lines', 'regexlist'), - ('fail_under', 'report:fail_under', 'int'), + ('fail_under', 'report:fail_under', 'float'), ('ignore_errors', 'report:ignore_errors', 'boolean'), ('partial_always_list', 'report:partial_branches_always', 'regexlist'), ('partial_list', 'report:partial_branches', 'regexlist'), |