From 3f21accaebff1481402578f5f35b813646652a85 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Mon, 11 Jan 2016 07:38:56 +0100 Subject: [PATCH] tests: Use sip.delete to clean up prompt. It looks like using deleteLater and waiting for the destroyed signal took too long on the buildbot: http://www.qutebrowser.org/testresults/osx/1245.html --- tests/unit/mainwindow/statusbar/test_prompt.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/unit/mainwindow/statusbar/test_prompt.py b/tests/unit/mainwindow/statusbar/test_prompt.py index 50eea6803..cc3e6761a 100644 --- a/tests/unit/mainwindow/statusbar/test_prompt.py +++ b/tests/unit/mainwindow/statusbar/test_prompt.py @@ -19,6 +19,8 @@ """Test Prompt widget.""" +import sip + import pytest from qutebrowser.mainwindow.statusbar.prompt import Prompt @@ -35,8 +37,7 @@ def prompt(qtbot, win_registry): # If we don't clean up here, this test will remove 'prompter' from the # objreg at some point in the future, which will cause some other test to # fail. - with qtbot.waitSignal(prompt.destroyed): - prompt.deleteLater() + sip.delete(prompt) def test_prompt(prompt):