From c23e4b1c5f7f8979002ae66c82cd76e05d656ef5 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Sat, 8 Apr 2017 19:20:53 +0200 Subject: [PATCH] tests: Allow @qt<... marker for BDD tests --- tests/end2end/conftest.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/end2end/conftest.py b/tests/end2end/conftest.py index 5dcff3fb5..7d1c0e90d 100644 --- a/tests/end2end/conftest.py +++ b/tests/end2end/conftest.py @@ -68,7 +68,7 @@ def _get_version_tag(tag): """ version_re = re.compile(r""" (?Pqt|pyqt) - (?P==|>=|!=) + (?P==|>=|!=|<) (?P\d+\.\d+(\.\d+)?) """, re.VERBOSE) @@ -84,6 +84,7 @@ def _get_version_tag(tag): do_skip = { '==': not qtutils.version_check(version, exact=True), '>=': not qtutils.version_check(version), + '<': qtutils.version_check(version), '!=': qtutils.version_check(version, exact=True), } return pytest.mark.skipif(do_skip[op], reason='Needs ' + tag)