Don't define pytest_bdd_apply_tag when frozen

This should help with the undefined hook while not requiring to install
the pytest-bdd plugin when frozen.
This commit is contained in:
Florian Bruhin 2016-06-30 17:40:54 +02:00
parent 49d3e9ece8
commit ead437be82

View File

@ -187,6 +187,7 @@ def pytest_sessionfinish(exitstatus):
f.write(str(exitstatus))
if not getattr(sys, 'frozen', False):
def pytest_bdd_apply_tag(tag, function):
version_re = re.compile(r"""
(?P<package>qt|pyqt)