From 867f509bcc9880d4a39aa7f59b7e5b5e84a7bb2b Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Sun, 1 Nov 2015 18:04:09 +0100 Subject: [PATCH] tests: Ignore QDisabledNetworkReply warning. I guess they are displayed now during teardown with the changes in pytest-qt. --- tests/unit/browser/test_tabhistory.py | 4 ++++ tests/unit/misc/test_sessions.py | 2 ++ 2 files changed, 6 insertions(+) diff --git a/tests/unit/browser/test_tabhistory.py b/tests/unit/browser/test_tabhistory.py index ad270bb85..3f2f9c988 100644 --- a/tests/unit/browser/test_tabhistory.py +++ b/tests/unit/browser/test_tabhistory.py @@ -29,6 +29,10 @@ from qutebrowser.browser.tabhistory import TabHistoryItem as Item from qutebrowser.utils import qtutils +pytestmark = pytest.mark.qt_log_ignore('QIODevice::read.*: device not open', + extend=True) + + ITEMS = [ Item(QUrl('https://www.heise.de/'), 'heise'), Item(QUrl('http://example.com/%E2%80%A6'), 'percent', active=True), diff --git a/tests/unit/misc/test_sessions.py b/tests/unit/misc/test_sessions.py index 08c78fbc1..472deec23 100644 --- a/tests/unit/misc/test_sessions.py +++ b/tests/unit/misc/test_sessions.py @@ -35,6 +35,8 @@ from qutebrowser.browser.tabhistory import TabHistoryItem as Item from qutebrowser.commands import cmdexc +pytestmark = pytest.mark.qt_log_ignore('QIODevice::read.*: device not open', + extend=True) @pytest.fixture def sess_man():