{"action":"closed","number":15503,"pull_request":{"url":"https://api.github.com/repos/sympy/sympy/pulls/15503","id":231756836,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMxNzU2ODM2","html_url":"https://github.com/sympy/sympy/pull/15503","diff_url":"https://github.com/sympy/sympy/pull/15503.diff","patch_url":"https://github.com/sympy/sympy/pull/15503.patch","issue_url":"https://api.github.com/repos/sympy/sympy/issues/15503","number":15503,"state":"closed","locked":false,"title":"Use deprecated_call to test for DeprecationWarning","user":{"login":"oscarbenjamin","id":1159732,"node_id":"MDQ6VXNlcjExNTk3MzI=","avatar_url":"https://avatars1.githubusercontent.com/u/1159732?v=4","gravatar_id":"","url":"https://api.github.com/users/oscarbenjamin","html_url":"https://github.com/oscarbenjamin","followers_url":"https://api.github.com/users/oscarbenjamin/followers","following_url":"https://api.github.com/users/oscarbenjamin/following{/other_user}","gists_url":"https://api.github.com/users/oscarbenjamin/gists{/gist_id}","starred_url":"https://api.github.com/users/oscarbenjamin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oscarbenjamin/subscriptions","organizations_url":"https://api.github.com/users/oscarbenjamin/orgs","repos_url":"https://api.github.com/users/oscarbenjamin/repos","events_url":"https://api.github.com/users/oscarbenjamin/events{/privacy}","received_events_url":"https://api.github.com/users/oscarbenjamin/received_events","type":"User","site_admin":false},"body":"<!-- Your title above should be a short description of what\r\nwas changed. Do not include the issue number in the title. -->\r\n\r\n\r\n#### References to other Issues or PRs\r\n<!-- If this pull request fixes an issue, write \"Fixes #NNNN\" in that exact\r\nformat, e.g. \"Fixes #1234\". See\r\nhttps://github.com/blog/1506-closing-issues-via-pull-requests .-->\r\n\r\nFixes #15499 \r\n\r\n\r\n#### Brief description of what is fixed or changed\r\n\r\nAdds a `deprecated_call` testing context manager compatible with `pytest`s [equivalent](https://docs.pytest.org/en/latest/warnings.html#ensuring-code-triggers-a-deprecation-warning). Changes tests that use `raises(SympyDeprecationWarning,...)` to use this context manager.\r\n\r\n#### Other comments\r\n\r\nThis fixes most errors seen when running the test suite under `pytest`. Apart from improving compatibility with `pytest` it shouldn't make any difference: the output from `bin/test` should be unchanged.\r\n\r\n#### Release Notes\r\n\r\n<!-- Write the release notes for this release below. See\r\nhttps://github.com/sympy/sympy/wiki/Writing-Release-Notes for more information\r\non how to write release notes. The bot will check your release notes\r\nautomatically to see if they are formatted correctly. -->\r\n\r\n<!-- BEGIN RELEASE NOTES -->\r\n* utilities\r\n    * improved compatibility with pytest\r\n<!-- END RELEASE NOTES -->\r\n","created_at":"2018-11-17T22:59:05Z","updated_at":"2018-11-21T02:51:35Z","closed_at":"2018-11-21T02:51:35Z","merged_at":null,"merge_commit_sha":"c8e0439bdcb7094a7cff8675f3f338b8e35258db","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/sympy/sympy/pulls/15503/commits","review_comments_url":"https://api.github.com/repos/sympy/sympy/pulls/15503/comments","review_comment_url":"https://api.github.com/repos/sympy/sympy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sympy/sympy/issues/15503/comments","statuses_url":"https://api.github.com/repos/sympy/sympy/statuses/412fa1866605735f7df929cead3a90f678180a4b","head":{"label":"oscarbenjamin:test_warnings","ref":"test_warnings","sha":"412fa1866605735f7df929cead3a90f678180a4b","user":{"login":"oscarbenjamin","id":1159732,"node_id":"MDQ6VXNlcjExNTk3MzI=","avatar_url":"https://avatars1.githubusercontent.com/u/1159732?v=4","gravatar_id":"","url":"https://api.github.com/users/oscarbenjamin","html_url":"https://github.com/oscarbenjamin","followers_url":"https://api.github.com/users/oscarbenjamin/followers","following_url":"https://api.github.com/users/oscarbenjamin/following{/other_user}","gists_url":"https://api.github.com/users/oscarbenjamin/gists{/gist_id}","starred_url":"https://api.github.com/users/oscarbenjamin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oscarbenjamin/subscriptions","organizations_url":"https://api.github.com/users/oscarbenjamin/orgs","repos_url":"https://api.github.com/users/oscarbenjamin/repos","events_url":"https://api.github.com/users/oscarbenjamin/events{/privacy}","received_events_url":"https://api.github.com/users/oscarbenjamin/received_events","type":"User","site_admin":false},"repo":{"id":5859002,"node_id":"MDEwOlJlcG9zaXRvcnk1ODU5MDAy","name":"sympy","full_name":"oscarbenjamin/sympy","private":false,"owner":{"login":"oscarbenjamin","id":1159732,"node_id":"MDQ6VXNlcjExNTk3MzI=","avatar_url":"https://avatars1.githubusercontent.com/u/1159732?v=4","gravatar_id":"","url":"https://api.github.com/users/oscarbenjamin","html_url":"https://github.com/oscarbenjamin","followers_url":"https://api.github.com/users/oscarbenjamin/followers","following_url":"https://api.github.com/users/oscarbenjamin/following{/other_user}","gists_url":"https://api.github.com/users/oscarbenjamin/gists{/gist_id}","starred_url":"https://api.github.com/users/oscarbenjamin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oscarbenjamin/subscriptions","organizations_url":"https://api.github.com/users/oscarbenjamin/orgs","repos_url":"https://api.github.com/users/oscarbenjamin/repos","events_url":"https://api.github.com/users/oscarbenjamin/events{/privacy}","received_events_url":"https://api.github.com/users/oscarbenjamin/received_events","type":"User","site_admin":false},"html_url":"https://github.com/oscarbenjamin/sympy","description":"A computer algebra system written in pure Python","fork":true,"url":"https://api.github.com/repos/oscarbenjamin/sympy","forks_url":"https://api.github.com/repos/oscarbenjamin/sympy/forks","keys_url":"https://api.github.com/repos/oscarbenjamin/sympy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/oscarbenjamin/sympy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/oscarbenjamin/sympy/teams","hooks_url":"https://api.github.com/repos/oscarbenjamin/sympy/hooks","issue_events_url":"https://api.github.com/repos/oscarbenjamin/sympy/issues/events{/number}","events_url":"https://api.github.com/repos/oscarbenjamin/sympy/events","assignees_url":"https://api.github.com/repos/oscarbenjamin/sympy/assignees{/user}","branches_url":"https://api.github.com/repos/oscarbenjamin/sympy/branches{/branch}","tags_url":"https://api.github.com/repos/oscarbenjamin/sympy/tags","blobs_url":"https://api.github.com/repos/oscarbenjamin/sympy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/oscarbenjamin/sympy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/oscarbenjamin/sympy/git/refs{/sha}","trees_url":"https://api.github.com/repos/oscarbenjamin/sympy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/oscarbenjamin/sympy/statuses/{sha}","languages_url":"https://api.github.com/repos/oscarbenjamin/sympy/languages","stargazers_url":"https://api.github.com/repos/oscarbenjamin/sympy/stargazers","contributors_url":"https://api.github.com/repos/oscarbenjamin/sympy/contributors","subscribers_url":"https://api.github.com/repos/oscarbenjamin/sympy/subscribers","subscription_url":"https://api.github.com/repos/oscarbenjamin/sympy/subscription","commits_url":"https://api.github.com/repos/oscarbenjamin/sympy/commits{/sha}","git_commits_url":"https://api.github.com/repos/oscarbenjamin/sympy/git/commits{/sha}","comments_url":"https://api.github.com/repos/oscarbenjamin/sympy/comments{/number}","issue_comment_url":"https://api.github.com/repos/oscarbenjamin/sympy/issues/comments{/number}","contents_url":"https://api.github.com/repos/oscarbenjamin/sympy/contents/{+path}","compare_url":"https://api.github.com/repos/oscarbenjamin/sympy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/oscarbenjamin/sympy/merges","archive_url":"https://api.github.com/repos/oscarbenjamin/sympy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/oscarbenjamin/sympy/downloads","issues_url":"https://api.github.com/repos/oscarbenjamin/sympy/issues{/number}","pulls_url":"https://api.github.com/repos/oscarbenjamin/sympy/pulls{/number}","milestones_url":"https://api.github.com/repos/oscarbenjamin/sympy/milestones{/number}","notifications_url":"https://api.github.com/repos/oscarbenjamin/sympy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/oscarbenjamin/sympy/labels{/name}","releases_url":"https://api.github.com/repos/oscarbenjamin/sympy/releases{/id}","deployments_url":"https://api.github.com/repos/oscarbenjamin/sympy/deployments","created_at":"2012-09-18T16:12:50Z","updated_at":"2018-11-19T13:37:25Z","pushed_at":"2018-11-21T02:33:19Z","git_url":"git://github.com/oscarbenjamin/sympy.git","ssh_url":"git@github.com:oscarbenjamin/sympy.git","clone_url":"https://github.com/oscarbenjamin/sympy.git","svn_url":"https://github.com/oscarbenjamin/sympy","homepage":"http://sympy.org/","size":96910,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"sympy:master","ref":"master","sha":"ef9f4363fcd7fc955de8b0902ba7a9495a321df0","user":{"login":"sympy","id":260832,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI2MDgzMg==","avatar_url":"https://avatars1.githubusercontent.com/u/260832?v=4","gravatar_id":"","url":"https://api.github.com/users/sympy","html_url":"https://github.com/sympy","followers_url":"https://api.github.com/users/sympy/followers","following_url":"https://api.github.com/users/sympy/following{/other_user}","gists_url":"https://api.github.com/users/sympy/gists{/gist_id}","starred_url":"https://api.github.com/users/sympy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sympy/subscriptions","organizations_url":"https://api.github.com/users/sympy/orgs","repos_url":"https://api.github.com/users/sympy/repos","events_url":"https://api.github.com/users/sympy/events{/privacy}","received_events_url":"https://api.github.com/users/sympy/received_events","type":"Organization","site_admin":false},"repo":{"id":640534,"node_id":"MDEwOlJlcG9zaXRvcnk2NDA1MzQ=","name":"sympy","full_name":"sympy/sympy","private":false,"owner":{"login":"sympy","id":260832,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI2MDgzMg==","avatar_url":"https://avatars1.githubusercontent.com/u/260832?v=4","gravatar_id":"","url":"https://api.github.com/users/sympy","html_url":"https://github.com/sympy","followers_url":"https://api.github.com/users/sympy/followers","following_url":"https://api.github.com/users/sympy/following{/other_user}","gists_url":"https://api.github.com/users/sympy/gists{/gist_id}","starred_url":"https://api.github.com/users/sympy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sympy/subscriptions","organizations_url":"https://api.github.com/users/sympy/orgs","repos_url":"https://api.github.com/users/sympy/repos","events_url":"https://api.github.com/users/sympy/events{/privacy}","received_events_url":"https://api.github.com/users/sympy/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/sympy/sympy","description":"A computer algebra system written in pure Python","fork":false,"url":"https://api.github.com/repos/sympy/sympy","forks_url":"https://api.github.com/repos/sympy/sympy/forks","keys_url":"https://api.github.com/repos/sympy/sympy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sympy/sympy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sympy/sympy/teams","hooks_url":"https://api.github.com/repos/sympy/sympy/hooks","issue_events_url":"https://api.github.com/repos/sympy/sympy/issues/events{/number}","events_url":"https://api.github.com/repos/sympy/sympy/events","assignees_url":"https://api.github.com/repos/sympy/sympy/assignees{/user}","branches_url":"https://api.github.com/repos/sympy/sympy/branches{/branch}","tags_url":"https://api.github.com/repos/sympy/sympy/tags","blobs_url":"https://api.github.com/repos/sympy/sympy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sympy/sympy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sympy/sympy/git/refs{/sha}","trees_url":"https://api.github.com/repos/sympy/sympy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sympy/sympy/statuses/{sha}","languages_url":"https://api.github.com/repos/sympy/sympy/languages","stargazers_url":"https://api.github.com/repos/sympy/sympy/stargazers","contributors_url":"https://api.github.com/repos/sympy/sympy/contributors","subscribers_url":"https://api.github.com/repos/sympy/sympy/subscribers","subscription_url":"https://api.github.com/repos/sympy/sympy/subscription","commits_url":"https://api.github.com/repos/sympy/sympy/commits{/sha}","git_commits_url":"https://api.github.com/repos/sympy/sympy/git/commits{/sha}","comments_url":"https://api.github.com/repos/sympy/sympy/comments{/number}","issue_comment_url":"https://api.github.com/repos/sympy/sympy/issues/comments{/number}","contents_url":"https://api.github.com/repos/sympy/sympy/contents/{+path}","compare_url":"https://api.github.com/repos/sympy/sympy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sympy/sympy/merges","archive_url":"https://api.github.com/repos/sympy/sympy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sympy/sympy/downloads","issues_url":"https://api.github.com/repos/sympy/sympy/issues{/number}","pulls_url":"https://api.github.com/repos/sympy/sympy/pulls{/number}","milestones_url":"https://api.github.com/repos/sympy/sympy/milestones{/number}","notifications_url":"https://api.github.com/repos/sympy/sympy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sympy/sympy/labels{/name}","releases_url":"https://api.github.com/repos/sympy/sympy/releases{/id}","deployments_url":"https://api.github.com/repos/sympy/sympy/deployments","created_at":"2010-04-30T20:37:14Z","updated_at":"2018-11-20T17:34:53Z","pushed_at":"2018-11-21T02:33:22Z","git_url":"git://github.com/sympy/sympy.git","ssh_url":"git@github.com:sympy/sympy.git","clone_url":"https://github.com/sympy/sympy.git","svn_url":"https://github.com/sympy/sympy","homepage":"https://sympy.org/","size":96817,"stargazers_count":5315,"watchers_count":5315,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2406,"mirror_url":null,"archived":false,"open_issues_count":3478,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":2406,"open_issues":3478,"watchers":5315,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sympy/sympy/pulls/15503"},"html":{"href":"https://github.com/sympy/sympy/pull/15503"},"issue":{"href":"https://api.github.com/repos/sympy/sympy/issues/15503"},"comments":{"href":"https://api.github.com/repos/sympy/sympy/issues/15503/comments"},"review_comments":{"href":"https://api.github.com/repos/sympy/sympy/pulls/15503/comments"},"review_comment":{"href":"https://api.github.com/repos/sympy/sympy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sympy/sympy/pulls/15503/commits"},"statuses":{"href":"https://api.github.com/repos/sympy/sympy/statuses/412fa1866605735f7df929cead3a90f678180a4b"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":true,"rebaseable":true,"mergeable_state":"unstable","merged_by":null,"comments":3,"review_comments":9,"maintainer_can_modify":false,"commits":5,"additions":97,"deletions":72,"changed_files":14}}
{"actor":{"display_login":"oscarbenjamin"}}