Skip to content

Commit 3948ea7

Browse files
authored
Merge pull request #2539 from devitocodes/JDBetteridge/remove_fp_equality_check
tests: Remove floating point equality assertions
2 parents 0cccf8a + 5244655 commit 3948ea7

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)