From 219c2f8ae85aad7233f1d423b4b11a5dc39c1c62 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Fri, 12 Jun 2015 17:04:12 +0200 Subject: [PATCH] Ignore "Unable to set geometry" warnings in tests. This reverts commits 9b066ec50af4cc38c0bc8fb909dd97469b521406 and 83f7cf84a9af99bfad52bc4e07aff157fae70804. This was still broken even after setting the geometry: https://ci.appveyor.com/project/The-Compiler/qutebrowser --- tests/mainwindow/statusbar/test_progress.py | 1 - tests/mainwindow/statusbar/test_textbase.py | 1 - tox.ini | 1 + 3 files changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/mainwindow/statusbar/test_progress.py b/tests/mainwindow/statusbar/test_progress.py index b8b03cd29..07e93e0e5 100644 --- a/tests/mainwindow/statusbar/test_progress.py +++ b/tests/mainwindow/statusbar/test_progress.py @@ -39,7 +39,6 @@ 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 diff --git a/tests/mainwindow/statusbar/test_textbase.py b/tests/mainwindow/statusbar/test_textbase.py index 0c2108dbe..eadf9c46a 100644 --- a/tests/mainwindow/statusbar/test_textbase.py +++ b/tests/mainwindow/statusbar/test_textbase.py @@ -46,7 +46,6 @@ 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) diff --git a/tox.ini b/tox.ini index 99690987d..19165402b 100644 --- a/tox.ini +++ b/tox.ini @@ -166,3 +166,4 @@ qt_log_level_fail = WARNING qt_log_ignore = ^SpellCheck: .* ^SetProcessDpiAwareness failed: .* + ^QWindowsWindow::setGeometryDp: Unable to set geometry .*