From 2b8b71a82d84e8303494eb4efd9e3b931079bd1f Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Sun, 11 Oct 2020 16:23:29 +0200 Subject: [PATCH] tests: Ignore 'could not de-queue request' error globally See #5787 --- pytest.ini | 1 + tests/unit/utils/test_urlutils.py | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/pytest.ini b/pytest.ini index 51411e11e..0b4fecf37 100644 --- a/pytest.ini +++ b/pytest.ini @@ -76,6 +76,7 @@ qt_log_ignore = ^QPaintDevice: Cannot destroy paint device that is being painted ^DirectWrite: CreateFontFaceFromHDC\(\) failed .* ^Attribute Qt::AA_ShareOpenGLContexts must be set before QCoreApplication is created\. + ^QHttpNetworkConnectionPrivate::_q_hostLookupFinished could not de-queue request, failed to report HostNotFoundError xfail_strict = true filterwarnings = error diff --git a/tests/unit/utils/test_urlutils.py b/tests/unit/utils/test_urlutils.py index 7fd52152c..df9d8b510 100644 --- a/tests/unit/utils/test_urlutils.py +++ b/tests/unit/utils/test_urlutils.py @@ -745,9 +745,6 @@ class TestProxyFromUrl: def test_proxy_from_url_valid(self, url, expected): assert urlutils.proxy_from_url(QUrl(url)) == expected - @pytest.mark.qt_log_ignore( - r'^QHttpNetworkConnectionPrivate::_q_hostLookupFinished could not ' - r'de-queue request, failed to report HostNotFoundError') @pytest.mark.parametrize('scheme', ['pac+http', 'pac+https']) def test_proxy_from_url_pac(self, scheme, qapp): fetcher = urlutils.proxy_from_url(QUrl('{}://foo'.format(scheme)))