{"action":"closed","issue":{"url":"https://api.github.com/repos/pytest-dev/pytest-bdd/issues/160","labels_url":"https://api.github.com/repos/pytest-dev/pytest-bdd/issues/160/labels{/name}","comments_url":"https://api.github.com/repos/pytest-dev/pytest-bdd/issues/160/comments","events_url":"https://api.github.com/repos/pytest-dev/pytest-bdd/issues/160/events","html_url":"https://github.com/pytest-dev/pytest-bdd/issues/160","id":113234069,"number":160,"title":"Tags cause Background to fail","user":{"login":"tedlandis","id":4984888,"avatar_url":"https://avatars.githubusercontent.com/u/4984888?v=3","gravatar_id":"","url":"https://api.github.com/users/tedlandis","html_url":"https://github.com/tedlandis","followers_url":"https://api.github.com/users/tedlandis/followers","following_url":"https://api.github.com/users/tedlandis/following{/other_user}","gists_url":"https://api.github.com/users/tedlandis/gists{/gist_id}","starred_url":"https://api.github.com/users/tedlandis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tedlandis/subscriptions","organizations_url":"https://api.github.com/users/tedlandis/orgs","repos_url":"https://api.github.com/users/tedlandis/repos","events_url":"https://api.github.com/users/tedlandis/events{/privacy}","received_events_url":"https://api.github.com/users/tedlandis/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-25T16:07:33Z","updated_at":"2016-01-26T10:24:38Z","closed_at":"2016-01-26T10:24:38Z","body":"```bash\r\nvenv/lib/python2.7/site-packages/pytest_bdd/feature.py:290: in __init__\r\n    \"Background section can only contain Given steps\", line_number, clean_line, filename)\r\nE   FeatureError: Background section can only contain Given steps.\r\nE   Line number: 17.\r\nE   Line: @wip.\r\n```\r\n```gherkin\r\nBackground:\r\n  Given I am on the new sale page as an associate\r\n\r\n\r\n@wip\r\nScenario: Create new item by adding it to a sale\r\n```\r\n\r\nAs you can see above, the Background only contains Given steps but the tag (@wip) on the first Scenario is being incorrectly included in the Background and causing an error.\r\n\r\nAs a workaround I tried to turn off strict checking using the following code but I couldn't get that to work either:\r\n```python\r\n@fixture(scope='session')\r\ndef pytestbdd_strict_gherkin():\r\n    return False\r\n```\r\n\r\nThanks"}}