Skip to content

Commit 7dd1e2b

Browse files
committed
tests: Turn equality into tolerance check
1 parent ce27131 commit 7dd1e2b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tests/test_linearize.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -686,4 +686,6 @@ def test_cire_n_strides():
686686
op0.apply(time_M=10)
687687
op2.apply(time_M=10, u=u1)
688688

689-
assert np.all(u.data == u1.data)
689+
# NOTE: not exact equality because `op2` slightly changes the order of
690+
# arithmetic operations, which in turn causes some rounding differences
691+
assert np.allclose(u.data, u1.data, rtol=1e-5)

0 commit comments

Comments
 (0)