diff options
author | Raphael Pierzina <raphael@hackebrot.de> | 2016-08-17 23:32:56 +0100 |
---|---|---|
committer | Raphael Pierzina <raphael@hackebrot.de> | 2016-08-17 23:32:56 +0100 |
commit | dfc659f7810284a8607d02a1e0052ff4af002300 (patch) | |
tree | abfe8ffa36902d234724ad6553bf40e3541d126a /testing | |
parent | 01739529611c433f7f3b91fb0734e428b84335b7 (diff) | |
download | pytest-dfc659f7810284a8607d02a1e0052ff4af002300.tar.gz |
Fix sys.version_info expression in xfail marker
Diffstat (limited to 'testing')
-rw-r--r-- | testing/python/metafunc.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testing/python/metafunc.py b/testing/python/metafunc.py index 09d54e478..249983ff5 100644 --- a/testing/python/metafunc.py +++ b/testing/python/metafunc.py @@ -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): |