Skip to content

Commit dfc659f

Browse files
committed
Fix sys.version_info expression in xfail marker
1 parent 0173952 commit dfc659f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

testing/python/metafunc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1087,7 +1087,7 @@ def test_xfail_passing_is_xpass(self, testdir, strict):
10871087
10881088
@pytest.mark.parametrize(("n", "expected"), [
10891089
(1, 2),
1090-
pytest.mark.xfail("sys.version_info.major > 0", reason="some bug", strict={strict})((2, 3)),
1090+
pytest.mark.xfail("sys.version_info > (0, 0, 0)", reason="some bug", strict={strict})((2, 3)),
10911091
(3, 4),
10921092
])
10931093
def test_increment(n, expected):

0 commit comments

Comments
 (0)