{"action":"created","issue":{"url":"https://api.github.com/repos/pytest-dev/pytest/issues/897","labels_url":"https://api.github.com/repos/pytest-dev/pytest/issues/897/labels{/name}","comments_url":"https://api.github.com/repos/pytest-dev/pytest/issues/897/comments","events_url":"https://api.github.com/repos/pytest-dev/pytest/issues/897/events","html_url":"https://github.com/pytest-dev/pytest/pull/897","id":97820880,"number":897,"title":"Warns","user":{"login":"hunse","id":1952250,"avatar_url":"https://avatars.githubusercontent.com/u/1952250?v=3","gravatar_id":"","url":"https://api.github.com/users/hunse","html_url":"https://github.com/hunse","followers_url":"https://api.github.com/users/hunse/followers","following_url":"https://api.github.com/users/hunse/following{/other_user}","gists_url":"https://api.github.com/users/hunse/gists{/gist_id}","starred_url":"https://api.github.com/users/hunse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hunse/subscriptions","organizations_url":"https://api.github.com/users/hunse/orgs","repos_url":"https://api.github.com/users/hunse/repos","events_url":"https://api.github.com/users/hunse/events{/privacy}","received_events_url":"https://api.github.com/users/hunse/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-28T23:08:58Z","updated_at":"2015-07-29T16:03:07Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/pytest-dev/pytest/pulls/897","html_url":"https://github.com/pytest-dev/pytest/pull/897","diff_url":"https://github.com/pytest-dev/pytest/pull/897.diff","patch_url":"https://github.com/pytest-dev/pytest/pull/897.patch"},"body":"The `recwarn` function argument is useful, but sometimes I just want to make sure that a warning of a particular type is thrown, and this takes a number of lines with `recwarn`. I added a `warns` fixture to ensure that warnings are thrown. Similar to `raises`, but for warnings."},"comment":{"url":"https://api.github.com/repos/pytest-dev/pytest/issues/comments/125999912","html_url":"https://github.com/pytest-dev/pytest/pull/897#issuecomment-125999912","issue_url":"https://api.github.com/repos/pytest-dev/pytest/issues/897","id":125999912,"user":{"login":"nicoddemus","id":1085180,"avatar_url":"https://avatars.githubusercontent.com/u/1085180?v=3","gravatar_id":"","url":"https://api.github.com/users/nicoddemus","html_url":"https://github.com/nicoddemus","followers_url":"https://api.github.com/users/nicoddemus/followers","following_url":"https://api.github.com/users/nicoddemus/following{/other_user}","gists_url":"https://api.github.com/users/nicoddemus/gists{/gist_id}","starred_url":"https://api.github.com/users/nicoddemus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicoddemus/subscriptions","organizations_url":"https://api.github.com/users/nicoddemus/orgs","repos_url":"https://api.github.com/users/nicoddemus/repos","events_url":"https://api.github.com/users/nicoddemus/events{/privacy}","received_events_url":"https://api.github.com/users/nicoddemus/received_events","type":"User","site_admin":false},"created_at":"2015-07-29T16:03:07Z","updated_at":"2015-07-29T16:03:07Z","body":"Nice @hunse, much appreciated! \r\n\r\nIf nobody has any more comments, I will merge this tomorrow. :smile:"}}