From 8166fbef6dc8e710912f2be4722621e13ae6d292 Mon Sep 17 00:00:00 2001 From: Cyrille Rossant Date: Wed, 1 Jun 2022 16:53:32 +0200 Subject: [PATCH] Fix qtbot test --- phy/plot/tests/test_interact.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phy/plot/tests/test_interact.py b/phy/plot/tests/test_interact.py index 56a7292cf..2c6d97799 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()