{"action":"created","issue":{"url":"https://api.github.com/repos/pytest-dev/pytest/issues/2118","repository_url":"https://api.github.com/repos/pytest-dev/pytest","labels_url":"https://api.github.com/repos/pytest-dev/pytest/issues/2118/labels{/name}","comments_url":"https://api.github.com/repos/pytest-dev/pytest/issues/2118/comments","events_url":"https://api.github.com/repos/pytest-dev/pytest/issues/2118/events","html_url":"https://github.com/pytest-dev/pytest/issues/2118","id":193537787,"number":2118,"title":"pytest triggering deprecation warnings in 3.0.5","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},"labels":[{"id":224849193,"url":"https://api.github.com/repos/pytest-dev/pytest/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-12-05T16:03:07Z","updated_at":"2016-12-05T17:06:06Z","closed_at":null,"body":"As commented by @nedbat in https://bitbucket.org/ned/coveragepy/pull-requests/94, it seems pytest itself is making use of the deprecated `compatproperty` names:\r\n\r\n```\r\n/Users/ned/coverage/trunk/.tox/py27/lib/python2.7/site-packages/_pytest/fixtures.py:1071: PendingDeprecationWarning: This usage is deprecated, please use pytest.Class instead\r\n  obj = getattr(holderobj, name, None)\r\n/Users/ned/coverage/trunk/.tox/py27/lib/python2.7/site-packages/_pytest/fixtures.py:1071: PendingDeprecationWarning: This usage is deprecated, please use pytest.File instead\r\n  obj = getattr(holderobj, name, None)\r\n/Users/ned/coverage/trunk/.tox/py27/lib/python2.7/site-packages/_pytest/fixtures.py:1071: PendingDeprecationWarning: This usage is deprecated, please use pytest.Function instead\r\n  obj = getattr(holderobj, name, None)\r\n/Users/ned/coverage/trunk/.tox/py27/lib/python2.7/site-packages/_pytest/fixtures.py:1071: PendingDeprecationWarning: This usage is deprecated, please use pytest.Instance instead\r\n  obj = getattr(holderobj, name, None)\r\n/Users/ned/coverage/trunk/.tox/py27/lib/python2.7/site-packages/_pytest/fixtures.py:1071: PendingDeprecationWarning: This usage is deprecated, please use pytest.Item instead\r\n  obj = getattr(holderobj, name, None)\r\n/Users/ned/coverage/trunk/.tox/py27/lib/python2.7/site-packages/_pytest/fixtures.py:1071: PendingDeprecationWarning: This usage is deprecated, please use pytest.Module instead\r\n  obj = getattr(holderobj, name, None)\r\n```\r\n\r\ncc @nmundar"},"comment":{"url":"https://api.github.com/repos/pytest-dev/pytest/issues/comments/264912519","html_url":"https://github.com/pytest-dev/pytest/issues/2118#issuecomment-264912519","issue_url":"https://api.github.com/repos/pytest-dev/pytest/issues/2118","id":264912519,"user":{"login":"nedbat","id":23789,"avatar_url":"https://avatars.githubusercontent.com/u/23789?v=3","gravatar_id":"","url":"https://api.github.com/users/nedbat","html_url":"https://github.com/nedbat","followers_url":"https://api.github.com/users/nedbat/followers","following_url":"https://api.github.com/users/nedbat/following{/other_user}","gists_url":"https://api.github.com/users/nedbat/gists{/gist_id}","starred_url":"https://api.github.com/users/nedbat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nedbat/subscriptions","organizations_url":"https://api.github.com/users/nedbat/orgs","repos_url":"https://api.github.com/users/nedbat/repos","events_url":"https://api.github.com/users/nedbat/events{/privacy}","received_events_url":"https://api.github.com/users/nedbat/received_events","type":"User","site_admin":false},"created_at":"2016-12-05T17:06:06Z","updated_at":"2016-12-05T17:06:06Z","body":"Oops, I hadn't tried catch_warnings correctly.  This works, and should only silence this specific warning:\r\n```\r\n            with warnings.catch_warnings():\r\n                warnings.filterwarnings(\"ignore\", message=\"This usage is deprecated, please use pytest.* instead\")\r\n                obj = getattr(holderobj, name, None)\r\n```"}}
{"actor":{"display_login":"nedbat"}}