Skip to content

Commit

Permalink
Fix wrong use of pytest.approx
Browse files Browse the repository at this point in the history
  • Loading branch information
rlouf committed Feb 8, 2022
1 parent ed25a07 commit 9f982cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_algorithms.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,4 @@ def test_welford_scalar(do_compute_covariance):
state = update(sample, *state)

cov = final(state[1], state[2]).eval()
assert pytest.approx(cov.squeeze(), 55.0 / 6.0)
assert pytest.approx(cov.squeeze()) == 55.0 / 6.0

0 comments on commit 9f982cc

Please sign in to comment.