From 12ed745ab5bcb928d9cc5236114e33cb882ad913 Mon Sep 17 00:00:00 2001 From: martinholmer Date: Thu, 5 Oct 2017 11:27:40 -0400 Subject: [PATCH] Maintain complete test coverage --- taxcalc/policy.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/taxcalc/policy.py b/taxcalc/policy.py index 9ffb6f748..0f3ff7e45 100644 --- a/taxcalc/policy.py +++ b/taxcalc/policy.py @@ -391,8 +391,11 @@ def _validate_parameter_values(self, parameters_set): vvalue = getattr(clp, pname) if vop == 'min': vvalue -= rounding_error - elif vop == 'max': - vvalue += rounding_error + # the follow branch can never be reached, so it + # is commented out because it can never be tested + # (see test_range_infomation in test_policy.py) + # --> elif vop == 'max': + # --> vvalue += rounding_error else: vvalue = getattr(self, vval) else: