diff --git a/tests/mainwindow/statusbar/test_textbase.py b/tests/mainwindow/statusbar/test_textbase.py index eadf9c46a..0c2108dbe 100644 --- a/tests/mainwindow/statusbar/test_textbase.py +++ b/tests/mainwindow/statusbar/test_textbase.py @@ -46,6 +46,7 @@ def test_elided_text(qtbot, elidemode, check): """ label = TextBase(elidemode=elidemode) qtbot.add_widget(label) + label.setGeometry(200, 200, 200, 200) long_string = 'Hello world! ' * 20 label.setText(long_string) label.resize(100, 50)