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
This commit is contained in:
Florian Bruhin 2015-10-05 08:11:26 +02:00
parent 54557fee20
commit cabbe406e3

View File

@ -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: