{"action":"closed","issue":{"url":"https://api.github.com/repos/pytest-dev/pytest/issues/2452","repository_url":"https://api.github.com/repos/pytest-dev/pytest","labels_url":"https://api.github.com/repos/pytest-dev/pytest/issues/2452/labels{/name}","comments_url":"https://api.github.com/repos/pytest-dev/pytest/issues/2452/comments","events_url":"https://api.github.com/repos/pytest-dev/pytest/issues/2452/events","html_url":"https://github.com/pytest-dev/pytest/issues/2452","id":232506490,"number":2452,"title":"introduce warning subclasses and use them to make deprecations visible/enforced","user":{"login":"RonnyPfannschmidt","id":156838,"avatar_url":"https://avatars2.githubusercontent.com/u/156838?v=3","gravatar_id":"","url":"https://api.github.com/users/RonnyPfannschmidt","html_url":"https://github.com/RonnyPfannschmidt","followers_url":"https://api.github.com/users/RonnyPfannschmidt/followers","following_url":"https://api.github.com/users/RonnyPfannschmidt/following{/other_user}","gists_url":"https://api.github.com/users/RonnyPfannschmidt/gists{/gist_id}","starred_url":"https://api.github.com/users/RonnyPfannschmidt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RonnyPfannschmidt/subscriptions","organizations_url":"https://api.github.com/users/RonnyPfannschmidt/orgs","repos_url":"https://api.github.com/users/RonnyPfannschmidt/repos","events_url":"https://api.github.com/users/RonnyPfannschmidt/events{/privacy}","received_events_url":"https://api.github.com/users/RonnyPfannschmidt/received_events","type":"User","site_admin":false},"labels":[{"id":224849844,"url":"https://api.github.com/repos/pytest-dev/pytest/labels/proposal","name":"proposal","color":"006b75","default":false},{"id":615327396,"url":"https://api.github.com/repos/pytest-dev/pytest/labels/warnings","name":"warnings","color":"fef2c0","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-05-31T09:24:30Z","updated_at":"2017-06-23T14:40:57Z","closed_at":"2017-06-23T14:40:56Z","body":"in order to support users in finding bad code, we should introduce Warnings subclasses similar to django\r\n\r\nfor example `RemovedInPytest40Warning(DeprecationWarning)`\r\n\r\nwe can then use the normal warnings modules to start and show those warnings, and even error out once we do a release\r\n\r\nthis enables a few positives\r\n\r\n1. control over what deprecation show\r\n2. disconnect breaking a feature from removing its code\r\n   (a warning error can be disabled by users or subsequent releases depending on need)\r\n\r\n"}}
{"actor":{"display_login":"RonnyPfannschmidt"}}