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