{"action":"opened","issue":{"url":"https://api.github.com/repos/pytest-dev/pytest-bdd/issues/159","labels_url":"https://api.github.com/repos/pytest-dev/pytest-bdd/issues/159/labels{/name}","comments_url":"https://api.github.com/repos/pytest-dev/pytest-bdd/issues/159/comments","events_url":"https://api.github.com/repos/pytest-dev/pytest-bdd/issues/159/events","html_url":"https://github.com/pytest-dev/pytest-bdd/issues/159","id":113161116,"number":159,"title":"Hooks not recognized when freezing with cx_Freeze","user":{"login":"The-Compiler","id":625793,"avatar_url":"https://avatars.githubusercontent.com/u/625793?v=3","gravatar_id":"","url":"https://api.github.com/users/The-Compiler","html_url":"https://github.com/The-Compiler","followers_url":"https://api.github.com/users/The-Compiler/followers","following_url":"https://api.github.com/users/The-Compiler/following{/other_user}","gists_url":"https://api.github.com/users/The-Compiler/gists{/gist_id}","starred_url":"https://api.github.com/users/The-Compiler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/The-Compiler/subscriptions","organizations_url":"https://api.github.com/users/The-Compiler/orgs","repos_url":"https://api.github.com/users/The-Compiler/repos","events_url":"https://api.github.com/users/The-Compiler/events{/privacy}","received_events_url":"https://api.github.com/users/The-Compiler/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-24T13:49:21Z","updated_at":"2015-10-24T13:49:21Z","closed_at":null,"body":"This might be a pytest core issue as well, but I'm not sure - all my other plugins work fine, and I can't imagine `pytest-bdd` is the only one with custom hooks.\r\n\r\nWhen running the tests frozen with `cx_Freeze`, after working around #158, I get:\r\n\r\n```\r\n____________________________________________ test_going_backforward ____________________________________________\r\n\r\nrequest = <FixtureRequest for <Function 'test_going_backforward'>>\r\n\r\n>   ???\r\n\r\ntests/integration/features/test_features.py:41: \r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \r\n\r\nfeature = <pytest_bdd.feature.Feature object at 0x7f40b4716da0>\r\nscenario = <pytest_bdd.feature.Scenario object at 0x7f40b4716e80>\r\nrequest = <FixtureRequest for <Function 'test_going_backforward'>>, encoding = 'utf-8'\r\n\r\n    def _execute_scenario(feature, scenario, request, encoding):\r\n        \"\"\"Execute the scenario.\r\n    \r\n        :param feature: Feature.\r\n        :param scenario: Scenario.\r\n        :param request: request.\r\n        :param encoding: Encoding.\r\n        \"\"\"\r\n>       request.config.hook.pytest_bdd_before_scenario(\r\n            request=request,\r\n            feature=feature,\r\n            scenario=scenario,\r\n        )\r\nE       AttributeError: 'HookRelay' object has no attribute 'pytest_bdd_before_scenario'\r\n\r\n.tox/unittests-frozen/lib/python3.4/site-packages/pytest_bdd/scenario.py:148: AttributeError\r\n```\r\n\r\nAfter commenting out all the hook calls, it works fine...\r\n\r\nAny idea why this is happening?"}}