From 96b4ab41c7c1b7e94981458e5f23e3ac0d66b1fe Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Wed, 26 Oct 2016 14:54:35 +0200 Subject: [PATCH] Re-add label.show() call We don't actually show a window (so no need to use waitForWindowShown/waitExposed), but we still need to make sure the label is shown. --- tests/unit/mainwindow/statusbar/test_textbase.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/unit/mainwindow/statusbar/test_textbase.py b/tests/unit/mainwindow/statusbar/test_textbase.py index 6aa6a7b96..1fb661296 100644 --- a/tests/unit/mainwindow/statusbar/test_textbase.py +++ b/tests/unit/mainwindow/statusbar/test_textbase.py @@ -50,6 +50,8 @@ def test_elided_text(fake_statusbar, qtbot, elidemode, check): long_string = 'Hello world! ' * 100 label.setText(long_string) + label.show() + assert check(label._elided_text)