-
-
Notifications
You must be signed in to change notification settings - Fork 689
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
Test failure in test_assert_bookmarks with Python 3.12 #1902
Comments
Hi! Thanks for the report. Maybe it’s caused by this improvement, that’s the only change related to floats I can find in Python 3.12’s changelog. There’s actually no need to search where it really comes from, it’s not a real bug, just one of the many rounding approximation we have in WeasyPrint (and in all browsers, to be honest!). Changing this |
You are spot on with regard to With regards to a PR I was wondering if just rounding is the right answer. I found a comment regarding
So I'm wondering if the right fix is to ensure that the tuple in |
👍
The The real solution would be to find which operations cause this rounding error and find a way to avoid it. I suspect the transformation matrix multiplications caused by the skew, but I don’t know why it happens just with Python 3.12. By the way, as other transformations already introduced rounding errors, as we already have a workaround for this in tests, I think that we can safely use the workaround. |
Thank you - maybe we should also adapt the comment in the |
|
No, I just misread the comment. Thank you. |
Fedora's Python wranglers just completed the Python 3.12 mass rebuild and unfortunately there is a WeasyPrint test failing:
The problem is reproducible in Fedora's containerized build infrastructure (mock). Should I try to debug this further or maybe you already know where this could be happening?
The text was updated successfully, but these errors were encountered: