Closed loriab closed 3 years ago
will this be ok, @awvwgk? it fixes CI. (sorry if double-ping -- I don't think GH pings on edits.)
I think the current threshold is relative rather than absolute (https://docs.pytest.org/en/6.2.x/reference.html#pytest.approx). I switched to pytest.approx(..., abs=thr)
for testing in my projects since the relative comparison can fail for very small (numerical zero) values otherwise.
sorry if double-ping -- I don't think GH pings on edits.
No problem. Looks like GH pings correctly for mentions in edits.
I think the current threshold is relative rather than absolute (https://docs.pytest.org/en/6.2.x/reference.html#pytest.approx). I switched to pytest.approx(..., abs=thr) for testing in my projects since the relative comparison can fail for very small (numerical zero) values otherwise.
Sounds good -- it was checking some elements to 1e-11 before, so this is a sensible relaxation.
Description
will this be ok, @awvwgk? it fixes CI.
Status