gaphas
gaphas copied to clipboard
test_tool_zoom.py::test_zoom_should_center_around_mouse_cursor failing in i686 chroot
Describe the bug test_tool_zoom.py::test_zoom_should_center_around_mouse_cursor fails when run with i686 packages on an x86_64 chroot in Void Linux:
============================= test session starts ==============================
platform linux -- Python 3.10.4, pytest-7.1.2, pluggy-1.0.0
rootdir: /builddir/gaphas-3.6.0, configfile: pyproject.toml, testpaths: tests
collected 192 items
tests/test_canvas.py ......... [ 4%]
tests/test_connections.py ....... [ 8%]
tests/test_connector.py ........... [ 14%]
tests/test_constraints.py ........ [ 18%]
tests/test_decorators.py .......... [ 23%]
tests/test_element.py ......... [ 28%]
tests/test_freehand.py .. [ 29%]
tests/test_geometry.py ............... [ 36%]
tests/test_guide.py ...... [ 40%]
tests/test_handle.py . [ 40%]
tests/test_handle_move.py .... [ 42%]
tests/test_item.py .... [ 44%]
tests/test_line.py . [ 45%]
tests/test_matrix.py . [ 45%]
tests/test_move.py . [ 46%]
tests/test_position.py ............... [ 54%]
tests/test_quadtree.py ....... [ 57%]
tests/test_segment.py ................... [ 67%]
tests/test_solver.py ...... [ 70%]
tests/test_solver_constraint.py ...... [ 73%]
tests/test_solver_variable.py ............ [ 80%]
tests/test_tool_hover.py .. [ 81%]
tests/test_tool_item.py ......... [ 85%]
tests/test_tool_placement.py .. [ 86%]
tests/test_tool_scroll.py .. [ 88%]
tests/test_tool_zoom.py .....F.. [ 92%]
tests/test_tree.py ..... [ 94%]
tests/test_view.py .......... [100%]
=================================== FAILURES ===================================
_________________ test_zoom_should_center_around_mouse_cursor __________________
zoom_data = <gaphas.tool.zoom.Zoom object at 0xf4a495c8>
view = <gtkview.GtkView object at 0xf4a4c768 (GaphasView at 0x584cb988)>
def test_zoom_should_center_around_mouse_cursor(zoom_data, view):
tool = zoom_tool(view)
view.add_controller(tool)
zoom_data.x0 = 100
zoom_data.y0 = 50
on_scale_changed(tool, 1.2, zoom_data)
> assert view.matrix[4] == -20.0
E assert -19.999999999999996 == -20.0
tests/test_tool_zoom.py:84: AssertionError
=========================== short test summary info ============================
FAILED tests/test_tool_zoom.py::test_zoom_should_center_around_mouse_cursor
To Reproduce Steps to reproduce the behavior:
- Run tests for gaphas in i686 chroot on x86_64 Void Linux host.
Expected behavior Tests should pass.
OS
- [x] Linux (Please put in notes the specific distro)
- [ ] MacOS
- [ ] Windows
NOTES:
Version Version of Gaphas: 3.6.0 Distro: Void Linux
Additional context I've opened a PR to add this package to the Void Linux repo here: https://github.com/void-linux/void-packages/pull/37270
The CI run fails for the i686 build here: https://github.com/void-linux/void-packages/runs/6576821953?check_suite_focus=true