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:
parent
49d3e9ece8
commit
ead437be82
@ -187,7 +187,8 @@ def pytest_sessionfinish(exitstatus):
|
||||
f.write(str(exitstatus))
|
||||
|
||||
|
||||
def pytest_bdd_apply_tag(tag, function):
|
||||
if not getattr(sys, 'frozen', False):
|
||||
def pytest_bdd_apply_tag(tag, function):
|
||||
version_re = re.compile(r"""
|
||||
(?P<package>qt|pyqt)
|
||||
(?P<operator>==|>|>=|<|<=|!=)
|
||||
|
Loading…
Reference in New Issue
Block a user