Skip to content

Commit 5244655

Browse files
JDBetteridgemloubout
authored andcommitted
tests: Remove floating point equality assertion only for pow test
1 parent 0cccf8a commit 5244655

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/test_symbolics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@ def test_pow_precision(dtype, expected):
712712
op.apply()
713713

714714
assert expected in str(op)
715-
assert np.all(f.data == 8.0)
715+
assert np.allclose(f.data, 8.0, rtol=np.finfo(dtype).eps)
716716

717717

718718
@pytest.mark.parametrize('dtype,expected', [

0 commit comments

Comments
 (0)