Skip to content

Commit

Permalink
Maintain complete test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
martinholmer committed Oct 5, 2017
1 parent 4ab06b8 commit 12ed745
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions taxcalc/policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 12ed745

Please sign in to comment.