-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tests/test_xpath1_parser.py::LxmlXPath1ParserTest::test_sum_function fails on some systems #66
Comments
Hi, |
This fails in Fedora on multiple architectures. I believe it might be related to python/cpython#100425 |
Oh, sorry but we don't have 81bca86 in Fedora yet, so perhaps I am not hitting the same problem but an older reversed one. |
Expecting 13.3 on Python 3.12.0b2 works in Fedora on many tests but one. I agree that rather than if'ing the expected number, asserting the numbers are close seems better. E.g. via |
- Close comparison only with an expected float, not for a list/set comparison (check_value and check_selector)
Release v4.1.3 test helpers ( This should be enough to avoid approximation errors in tests (apply it also to |
Thanks. I can confirm that the tests pass for me in 4.1.3. |
This is basically a "sigh" kind of problem but when running on my production system, I'm getting the following test failure:
However, in the tox venv it's passing.
I've seen another package having weird precision-related test failure with Python 3.12. Perhaps the right solution would be to do testing with some tolerance rather than assuming an exact value?
The text was updated successfully, but these errors were encountered: