Skip to content

Commit

Permalink
Stricter tolerance in property tests
Browse files Browse the repository at this point in the history
now that ml31415/numpy-groupies#90 was merged
  • Loading branch information
dcherian committed Jul 31, 2024
1 parent 8e522b5 commit d5519d5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/test_properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,7 @@ def test_groupby_reduce(data, array, func: str) -> None:
actual = actual.astype(cast_to)

note(("expected: ", expected, "actual: ", actual))
tolerance = (
{"rtol": 1e-13, "atol": 1e-15} if "var" in func or "std" in func else {"atol": 1e-15}
)
tolerance = {"atol": 1e-15}
assert_equal(expected, actual, tolerance)


Expand Down

0 comments on commit d5519d5

Please sign in to comment.