Skip to content

Commit

Permalink
Update taxcalc/tests/test_parameters.py
Browse files Browse the repository at this point in the history
Co-authored-by: Henry "Hank" Doupe <henrymdoupe@gmail.com>
  • Loading branch information
jdebacker and hdoupe authored May 14, 2021
1 parent ec44fe7 commit 5133def
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion taxcalc/tests/test_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ def test_json_file_contents(tests_path, fname):
for param in param_list:
for y in known_years:
o.set_year(y)
if np.isnan(o.__getattribute__(param)).any():
if np.isnan(getattr(o, param)).any():
msg = 'param:<{}>; not found in year={}'
fail = msg.format(param, y)
failures += fail + '\n'
Expand Down

0 comments on commit 5133def

Please sign in to comment.