Skip to content

Commit

Permalink
Update h2o-py/tests/pyunit_utils/utilsPY.py
Browse files Browse the repository at this point in the history
Co-authored-by: Veronika Maurerová <[email protected]>
  • Loading branch information
valenad1 and maurever committed Mar 9, 2022
1 parent 27146e6 commit 25d0f39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion h2o-py/tests/pyunit_utils/utilsPY.py
Original file line number Diff line number Diff line change
Expand Up @@ -4539,7 +4539,7 @@ def assertCoefDictEqual(regCoeff, coeff, tol=1e-6):
assert diff < tol, "diff {0} exceeds tolerance {1}.".format(diff, tol)


def assert_equals(expected, actual, message="", delta=-1):
def assert_equals(expected, actual, message="", delta=0):
if delta != -1:
assert abs(expected - actual) <= delta, ("{0}\nexpected:{1}\nactual\t:{2}".format(message, expected, actual))
else:
Expand Down

0 comments on commit 25d0f39

Please sign in to comment.