Fix xfail marker

This commit is contained in:
Ines Montani 2019-03-22 12:54:14 +01:00
parent d811c97da1
commit 188ccd5750

View File

@ -65,7 +65,7 @@ prefix_search = (
if compat.is_python2:
# If we have this test in Python 3, pytest chokes, as it can't print the
# string above in the xpass message.
@pytest.xfail
@pytest.mark.xfail
def test_issue3356():
pattern = re.compile(prefix_search.decode("utf8"))
assert not pattern.search(u"hello")