diff --git a/phy/plot/tests/test_interact.py b/phy/plot/tests/test_interact.py index 56a7292c..2c6d9779 100644 --- a/phy/plot/tests/test_interact.py +++ b/phy/plot/tests/test_interact.py @@ -287,7 +287,7 @@ def test_lasso_grid(qtbot, canvas): qtbot.wait(20) def _ctrl_click(x, y, button='left'): - mouse_click(qtbot, canvas, (x, y), button=button, modifiers=('Control',)) + mouse_click(qtbot, canvas, (int(x), int(y)), button=button, modifiers=('Control',)) # Square selection in the right panel. w, h = canvas.get_size()