From eb463ab2d3b4f7f5fdbc35074d3aed3a261899f3 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Thu, 30 Jun 2016 14:47:55 +0200 Subject: [PATCH] Fix pytest-bdd tags --- tests/conftest.py | 4 ++-- tests/end2end/features/misc.feature | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index 0fc79419c..a95b87473 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -220,8 +220,8 @@ def pytest_bdd_apply_tag(tag, function): hex_version = (major << 16) | (minor << 8) | patch mark = pytest.mark.skipif(not op(PYQT_VERSION, hex_version), reason='Needs ' + tag) - # else: - raise ValueError("Invalid package {}".format(package)) + else: + raise ValueError("Invalid package {!r}".format(package)) mark(function) return True diff --git a/tests/end2end/features/misc.feature b/tests/end2end/features/misc.feature index bd54960bd..ed415958d 100644 --- a/tests/end2end/features/misc.feature +++ b/tests/end2end/features/misc.feature @@ -363,7 +363,7 @@ Feature: Various utility commands. And I press the key "" Then no crash should happen - @pyqt531_or_newer + @pyqt>=5.3.1 Scenario: Focusing download widget via Tab (original issue) When I open data/prompt/jsprompt.html And I run :hint