Skip to content

Commit 3fd1ff2

Browse files
committed
fix: unreliable floating point equality (RUF069)
1 parent d9e3bff commit 3fd1ff2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/test_meshmode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,7 @@ def test_sanity_no_elements(
702702
vol_one = 1 + 0 * nodes[0]
703703

704704
from pytential import integral
705-
assert integral(vol_discr, vol_one) == 0.
705+
assert abs(integral(vol_discr, vol_one)) < 1.0e-15
706706

707707
# }}}
708708

0 commit comments

Comments
 (0)