Fix pytest-bdd tags

This commit is contained in:
Florian Bruhin 2016-06-30 14:47:55 +02:00
parent 8d9a699b5b
commit eb463ab2d3
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -363,7 +363,7 @@ Feature: Various utility commands.
And I press the key "<Ctrl-C>"
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