Fix sys.version_info expression in xfail marker

This commit is contained in:
Raphael Pierzina 2016-08-17 23:32:56 +01:00
parent 0173952961
commit dfc659f781
1 changed files with 1 additions and 1 deletions

View File

@ -1087,7 +1087,7 @@ class TestMarkersWithParametrization:
@pytest.mark.parametrize(("n", "expected"), [
(1, 2),
pytest.mark.xfail("sys.version_info.major > 0", reason="some bug", strict={strict})((2, 3)),
pytest.mark.xfail("sys.version_info > (0, 0, 0)", reason="some bug", strict={strict})((2, 3)),
(3, 4),
])
def test_increment(n, expected):