diff --git a/test/test_controls.py b/test/test_controls.py index 9fbb4fa5..bfa555d8 100644 --- a/test/test_controls.py +++ b/test/test_controls.py @@ -117,7 +117,7 @@ def custom_joy_apply(event, _) -> bool: """ Custom widget apply event. """ - condition = hasattr(event, 'button') and event.button == 8 + condition = event.button == 8 joy_apply[0] = condition return condition