From 83f7cf84a9af99bfad52bc4e07aff157fae70804 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Sun, 7 Jun 2015 11:14:14 +0200 Subject: [PATCH] tests: Set progress widget geometry. This hopefully fixes this warning on Windows: QWindowsWindow::setGeometryDp: Unable to set geometry 113x16+192+124 on QWidgetWindow/'ProgressClassWindow'. Resulting geometry: 124x16+192+124 (frame: 8, 31, 8, 8, custom margin: 0, 0, 0, 0, minimum size: 0x0, maximum size: 16777215x16777215). --- tests/mainwindow/statusbar/test_progress.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/mainwindow/statusbar/test_progress.py b/tests/mainwindow/statusbar/test_progress.py index 07e93e0e5..b8b03cd29 100644 --- a/tests/mainwindow/statusbar/test_progress.py +++ b/tests/mainwindow/statusbar/test_progress.py @@ -39,6 +39,7 @@ def progress_widget(qtbot, monkeypatch, config_stub): 'qutebrowser.mainwindow.statusbar.progress.style.config', config_stub) widget = Progress() qtbot.add_widget(widget) + widget.setGeometry(200, 200, 200, 200) assert not widget.isVisible() assert not widget.isTextVisible() return widget