From cabbe406e35647529f39d6e9a053fd813174fa92 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Mon, 5 Oct 2015 08:11:26 +0200 Subject: [PATCH] tests: Fix ignoring of "load glyph failed" message. The mark seems to be swallowed somehow when it's after @hypothesis.given. See https://github.com/DRMacIver/hypothesis/issues/189 --- tests/unit/browser/test_webelem.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/browser/test_webelem.py b/tests/unit/browser/test_webelem.py index 582bf49a4..bed604fa1 100644 --- a/tests/unit/browser/test_webelem.py +++ b/tests/unit/browser/test_webelem.py @@ -644,8 +644,8 @@ class TestJavascriptEscape: """Test javascript escaping with a real QWebPage.""" self._test_escape(text, qtbot, webframe) - @hypothesis.given(hypothesis.strategies.text()) @pytest.mark.qt_log_ignore('^load glyph failed') + @hypothesis.given(hypothesis.strategies.text()) def test_real_escape_hypothesis(self, webframe, qtbot, text): """Test javascript escaping with a real QWebPage and hypothesis.""" # We can't simply use self._test_escape because of this: