{"action":"closed","number":64,"pull_request":{"url":"https://api.github.com/repos/kyrus/python-junit-xml/pulls/64","id":316413372,"node_id":"MDExOlB1bGxSZXF1ZXN0MzE2NDEzMzcy","html_url":"https://github.com/kyrus/python-junit-xml/pull/64","diff_url":"https://github.com/kyrus/python-junit-xml/pull/64.diff","patch_url":"https://github.com/kyrus/python-junit-xml/pull/64.patch","issue_url":"https://api.github.com/repos/kyrus/python-junit-xml/issues/64","number":64,"state":"closed","locked":false,"title":"Run tests with Python 3.8","user":{"login":"rst0git","id":9142901,"node_id":"MDQ6VXNlcjkxNDI5MDE=","avatar_url":"https://avatars2.githubusercontent.com/u/9142901?v=4","gravatar_id":"","url":"https://api.github.com/users/rst0git","html_url":"https://github.com/rst0git","followers_url":"https://api.github.com/users/rst0git/followers","following_url":"https://api.github.com/users/rst0git/following{/other_user}","gists_url":"https://api.github.com/users/rst0git/gists{/gist_id}","starred_url":"https://api.github.com/users/rst0git/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rst0git/subscriptions","organizations_url":"https://api.github.com/users/rst0git/orgs","repos_url":"https://api.github.com/users/rst0git/repos","events_url":"https://api.github.com/users/rst0git/events{/privacy}","received_events_url":"https://api.github.com/users/rst0git/received_events","type":"User","site_admin":false},"body":"This patch resolves several issues with Python 3.8 and enables testing with Tox:\r\n\r\nhttps://bugzilla.redhat.com/show_bug.cgi?id=1716504\r\n\r\n```\r\n$ tox -e py38\r\n...\r\n――――――――――――――――――――――― test_to_xml_string ―――――――――――――――――――――――\r\n\r\n    def test_to_xml_string():\r\n        test_suites = [\r\n            Suite(name=\"suite1\", test_cases=[Case(name=\"Test1\")]),\r\n            Suite(name=\"suite2\", test_cases=[Case(name=\"Test2\")]),\r\n        ]\r\n        xml_string = to_xml_report_string(test_suites)\r\n        if PY2:\r\n            assert isinstance(xml_string, unicode)  # noqa: F821\r\n        expected_xml_string = textwrap.dedent(\r\n            \"\"\"\r\n            <?xml version=\"1.0\" ?>\r\n            <testsuites disabled=\"0\" errors=\"0\" failures=\"0\" tests=\"2\" time=\"0.0\">\r\n            \\t<testsuite disabled=\"0\" errors=\"0\" failures=\"0\" name=\"suite1\" skipped=\"0\" tests=\"1\" time=\"0\">\r\n            \\t\\t<testcase name=\"Test1\"/>\r\n            \\t</testsuite>\r\n            \\t<testsuite disabled=\"0\" errors=\"0\" failures=\"0\" name=\"suite2\" skipped=\"0\" tests=\"1\" time=\"0\">\r\n            \\t\\t<testcase name=\"Test2\"/>\r\n            \\t</testsuite>\r\n            </testsuites>\r\n        \"\"\".strip(\r\n                \"\\n\"\r\n            )\r\n        )\r\n>       assert xml_string == expected_xml_string\r\nE       assert '<?xml versio...testsuites>\\n' == '<?xml versio...testsuites>\\n'\r\nE         Skipping 49 identical trailing characters in diff, use -v to show\r\nE           <?xml version=\"1.0\" ?>\r\nE         - <testsuites failures=\"0\" errors=\"0\" tests=\"2\" disabled=\"0\" time=\"0.0\">\r\nE         - \t<testsuite name=\"suite1\" disabled=\"0\" failures=\"0\" errors=\"0\" skipped=\"0\" time=\"0\" tests=\"1\">\r\nE         + <testsuites disabled=\"0\" errors=\"0\" failures=\"0\" tests=\"2\" time=\"0.0\">\r\nE         + \t<testsuite disabled=\"0\" errors=\"0\" failures=\"0\" name=\"suite1\" skipped=\"0\" tests=\"1\" time=\"0\">\r\nE           \t\t<testcase name=\"Test1\"/>...\r\nE         \r\nE         ...Full output truncated (5 lines hidden), use '-vv' to show\r\n\r\ntests/test_test_suite.py:217: AssertionError\r\n\r\n tests/test_test_suite.py ⨯✓✓✓                     100% ██████████\r\n- generated xml file: /home/rst/test/python-junit-xml/.tox/py38/log/junit-py38.xml -\r\n\r\nResults (0.74s):\r\n      45 passed\r\n       1 failed\r\n         - tests/test_test_suite.py:194 test_to_xml_string\r\n\r\n```\r\n","created_at":"2019-09-11T12:02:57Z","updated_at":"2019-09-11T18:04:57Z","closed_at":"2019-09-11T18:04:57Z","merged_at":"2019-09-11T18:04:57Z","merge_commit_sha":"63db26da353790500642fd02cae1543eb41aab8b","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/kyrus/python-junit-xml/pulls/64/commits","review_comments_url":"https://api.github.com/repos/kyrus/python-junit-xml/pulls/64/comments","review_comment_url":"https://api.github.com/repos/kyrus/python-junit-xml/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kyrus/python-junit-xml/issues/64/comments","statuses_url":"https://api.github.com/repos/kyrus/python-junit-xml/statuses/259684eb604677174313fef003bc0174f5962917","head":{"label":"rst0git:py38","ref":"py38","sha":"259684eb604677174313fef003bc0174f5962917","user":{"login":"rst0git","id":9142901,"node_id":"MDQ6VXNlcjkxNDI5MDE=","avatar_url":"https://avatars2.githubusercontent.com/u/9142901?v=4","gravatar_id":"","url":"https://api.github.com/users/rst0git","html_url":"https://github.com/rst0git","followers_url":"https://api.github.com/users/rst0git/followers","following_url":"https://api.github.com/users/rst0git/following{/other_user}","gists_url":"https://api.github.com/users/rst0git/gists{/gist_id}","starred_url":"https://api.github.com/users/rst0git/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rst0git/subscriptions","organizations_url":"https://api.github.com/users/rst0git/orgs","repos_url":"https://api.github.com/users/rst0git/repos","events_url":"https://api.github.com/users/rst0git/events{/privacy}","received_events_url":"https://api.github.com/users/rst0git/received_events","type":"User","site_admin":false},"repo":{"id":207798922,"node_id":"MDEwOlJlcG9zaXRvcnkyMDc3OTg5MjI=","name":"python-junit-xml","full_name":"rst0git/python-junit-xml","private":false,"owner":{"login":"rst0git","id":9142901,"node_id":"MDQ6VXNlcjkxNDI5MDE=","avatar_url":"https://avatars2.githubusercontent.com/u/9142901?v=4","gravatar_id":"","url":"https://api.github.com/users/rst0git","html_url":"https://github.com/rst0git","followers_url":"https://api.github.com/users/rst0git/followers","following_url":"https://api.github.com/users/rst0git/following{/other_user}","gists_url":"https://api.github.com/users/rst0git/gists{/gist_id}","starred_url":"https://api.github.com/users/rst0git/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rst0git/subscriptions","organizations_url":"https://api.github.com/users/rst0git/orgs","repos_url":"https://api.github.com/users/rst0git/repos","events_url":"https://api.github.com/users/rst0git/events{/privacy}","received_events_url":"https://api.github.com/users/rst0git/received_events","type":"User","site_admin":false},"html_url":"https://github.com/rst0git/python-junit-xml","description":"A Python module for creating JUnit XML test result documents that can be read by tools such as Jenkins. If you are ever working with test tool or test suite written in Python and want to take advantage of Jenkins' pretty graphs and test reporting capabilities, this module will let you generate the XML test reports.","fork":true,"url":"https://api.github.com/repos/rst0git/python-junit-xml","forks_url":"https://api.github.com/repos/rst0git/python-junit-xml/forks","keys_url":"https://api.github.com/repos/rst0git/python-junit-xml/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rst0git/python-junit-xml/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rst0git/python-junit-xml/teams","hooks_url":"https://api.github.com/repos/rst0git/python-junit-xml/hooks","issue_events_url":"https://api.github.com/repos/rst0git/python-junit-xml/issues/events{/number}","events_url":"https://api.github.com/repos/rst0git/python-junit-xml/events","assignees_url":"https://api.github.com/repos/rst0git/python-junit-xml/assignees{/user}","branches_url":"https://api.github.com/repos/rst0git/python-junit-xml/branches{/branch}","tags_url":"https://api.github.com/repos/rst0git/python-junit-xml/tags","blobs_url":"https://api.github.com/repos/rst0git/python-junit-xml/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rst0git/python-junit-xml/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rst0git/python-junit-xml/git/refs{/sha}","trees_url":"https://api.github.com/repos/rst0git/python-junit-xml/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rst0git/python-junit-xml/statuses/{sha}","languages_url":"https://api.github.com/repos/rst0git/python-junit-xml/languages","stargazers_url":"https://api.github.com/repos/rst0git/python-junit-xml/stargazers","contributors_url":"https://api.github.com/repos/rst0git/python-junit-xml/contributors","subscribers_url":"https://api.github.com/repos/rst0git/python-junit-xml/subscribers","subscription_url":"https://api.github.com/repos/rst0git/python-junit-xml/subscription","commits_url":"https://api.github.com/repos/rst0git/python-junit-xml/commits{/sha}","git_commits_url":"https://api.github.com/repos/rst0git/python-junit-xml/git/commits{/sha}","comments_url":"https://api.github.com/repos/rst0git/python-junit-xml/comments{/number}","issue_comment_url":"https://api.github.com/repos/rst0git/python-junit-xml/issues/comments{/number}","contents_url":"https://api.github.com/repos/rst0git/python-junit-xml/contents/{+path}","compare_url":"https://api.github.com/repos/rst0git/python-junit-xml/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rst0git/python-junit-xml/merges","archive_url":"https://api.github.com/repos/rst0git/python-junit-xml/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rst0git/python-junit-xml/downloads","issues_url":"https://api.github.com/repos/rst0git/python-junit-xml/issues{/number}","pulls_url":"https://api.github.com/repos/rst0git/python-junit-xml/pulls{/number}","milestones_url":"https://api.github.com/repos/rst0git/python-junit-xml/milestones{/number}","notifications_url":"https://api.github.com/repos/rst0git/python-junit-xml/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rst0git/python-junit-xml/labels{/name}","releases_url":"https://api.github.com/repos/rst0git/python-junit-xml/releases{/id}","deployments_url":"https://api.github.com/repos/rst0git/python-junit-xml/deployments","created_at":"2019-09-11T11:46:00Z","updated_at":"2019-09-11T11:46:01Z","pushed_at":"2019-09-11T12:21:11Z","git_url":"git://github.com/rst0git/python-junit-xml.git","ssh_url":"git@github.com:rst0git/python-junit-xml.git","clone_url":"https://github.com/rst0git/python-junit-xml.git","svn_url":"https://github.com/rst0git/python-junit-xml","homepage":"","size":98,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"kyrus:master","ref":"master","sha":"63e95fd20edf7b0b62d6a45bcf857b3c57d212a1","user":{"login":"kyrus","id":3225514,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyMjU1MTQ=","avatar_url":"https://avatars3.githubusercontent.com/u/3225514?v=4","gravatar_id":"","url":"https://api.github.com/users/kyrus","html_url":"https://github.com/kyrus","followers_url":"https://api.github.com/users/kyrus/followers","following_url":"https://api.github.com/users/kyrus/following{/other_user}","gists_url":"https://api.github.com/users/kyrus/gists{/gist_id}","starred_url":"https://api.github.com/users/kyrus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyrus/subscriptions","organizations_url":"https://api.github.com/users/kyrus/orgs","repos_url":"https://api.github.com/users/kyrus/repos","events_url":"https://api.github.com/users/kyrus/events{/privacy}","received_events_url":"https://api.github.com/users/kyrus/received_events","type":"Organization","site_admin":false},"repo":{"id":7611542,"node_id":"MDEwOlJlcG9zaXRvcnk3NjExNTQy","name":"python-junit-xml","full_name":"kyrus/python-junit-xml","private":false,"owner":{"login":"kyrus","id":3225514,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyMjU1MTQ=","avatar_url":"https://avatars3.githubusercontent.com/u/3225514?v=4","gravatar_id":"","url":"https://api.github.com/users/kyrus","html_url":"https://github.com/kyrus","followers_url":"https://api.github.com/users/kyrus/followers","following_url":"https://api.github.com/users/kyrus/following{/other_user}","gists_url":"https://api.github.com/users/kyrus/gists{/gist_id}","starred_url":"https://api.github.com/users/kyrus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyrus/subscriptions","organizations_url":"https://api.github.com/users/kyrus/orgs","repos_url":"https://api.github.com/users/kyrus/repos","events_url":"https://api.github.com/users/kyrus/events{/privacy}","received_events_url":"https://api.github.com/users/kyrus/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/kyrus/python-junit-xml","description":"A Python module for creating JUnit XML test result documents that can be read by tools such as Jenkins. If you are ever working with test tool or test suite written in Python and want to take advantage of Jenkins' pretty graphs and test reporting capabilities, this module will let you generate the XML test reports.","fork":false,"url":"https://api.github.com/repos/kyrus/python-junit-xml","forks_url":"https://api.github.com/repos/kyrus/python-junit-xml/forks","keys_url":"https://api.github.com/repos/kyrus/python-junit-xml/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kyrus/python-junit-xml/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kyrus/python-junit-xml/teams","hooks_url":"https://api.github.com/repos/kyrus/python-junit-xml/hooks","issue_events_url":"https://api.github.com/repos/kyrus/python-junit-xml/issues/events{/number}","events_url":"https://api.github.com/repos/kyrus/python-junit-xml/events","assignees_url":"https://api.github.com/repos/kyrus/python-junit-xml/assignees{/user}","branches_url":"https://api.github.com/repos/kyrus/python-junit-xml/branches{/branch}","tags_url":"https://api.github.com/repos/kyrus/python-junit-xml/tags","blobs_url":"https://api.github.com/repos/kyrus/python-junit-xml/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kyrus/python-junit-xml/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kyrus/python-junit-xml/git/refs{/sha}","trees_url":"https://api.github.com/repos/kyrus/python-junit-xml/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kyrus/python-junit-xml/statuses/{sha}","languages_url":"https://api.github.com/repos/kyrus/python-junit-xml/languages","stargazers_url":"https://api.github.com/repos/kyrus/python-junit-xml/stargazers","contributors_url":"https://api.github.com/repos/kyrus/python-junit-xml/contributors","subscribers_url":"https://api.github.com/repos/kyrus/python-junit-xml/subscribers","subscription_url":"https://api.github.com/repos/kyrus/python-junit-xml/subscription","commits_url":"https://api.github.com/repos/kyrus/python-junit-xml/commits{/sha}","git_commits_url":"https://api.github.com/repos/kyrus/python-junit-xml/git/commits{/sha}","comments_url":"https://api.github.com/repos/kyrus/python-junit-xml/comments{/number}","issue_comment_url":"https://api.github.com/repos/kyrus/python-junit-xml/issues/comments{/number}","contents_url":"https://api.github.com/repos/kyrus/python-junit-xml/contents/{+path}","compare_url":"https://api.github.com/repos/kyrus/python-junit-xml/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kyrus/python-junit-xml/merges","archive_url":"https://api.github.com/repos/kyrus/python-junit-xml/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kyrus/python-junit-xml/downloads","issues_url":"https://api.github.com/repos/kyrus/python-junit-xml/issues{/number}","pulls_url":"https://api.github.com/repos/kyrus/python-junit-xml/pulls{/number}","milestones_url":"https://api.github.com/repos/kyrus/python-junit-xml/milestones{/number}","notifications_url":"https://api.github.com/repos/kyrus/python-junit-xml/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kyrus/python-junit-xml/labels{/name}","releases_url":"https://api.github.com/repos/kyrus/python-junit-xml/releases{/id}","deployments_url":"https://api.github.com/repos/kyrus/python-junit-xml/deployments","created_at":"2013-01-14T19:59:00Z","updated_at":"2019-08-23T22:46:39Z","pushed_at":"2019-09-11T18:04:57Z","git_url":"git://github.com/kyrus/python-junit-xml.git","ssh_url":"git@github.com:kyrus/python-junit-xml.git","clone_url":"https://github.com/kyrus/python-junit-xml.git","svn_url":"https://github.com/kyrus/python-junit-xml","homepage":"","size":96,"stargazers_count":59,"watchers_count":59,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":35,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":13,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":35,"open_issues":13,"watchers":59,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kyrus/python-junit-xml/pulls/64"},"html":{"href":"https://github.com/kyrus/python-junit-xml/pull/64"},"issue":{"href":"https://api.github.com/repos/kyrus/python-junit-xml/issues/64"},"comments":{"href":"https://api.github.com/repos/kyrus/python-junit-xml/issues/64/comments"},"review_comments":{"href":"https://api.github.com/repos/kyrus/python-junit-xml/pulls/64/comments"},"review_comment":{"href":"https://api.github.com/repos/kyrus/python-junit-xml/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kyrus/python-junit-xml/pulls/64/commits"},"statuses":{"href":"https://api.github.com/repos/kyrus/python-junit-xml/statuses/259684eb604677174313fef003bc0174f5962917"}},"author_association":"NONE","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"sysradium","id":16747951,"node_id":"MDQ6VXNlcjE2NzQ3OTUx","avatar_url":"https://avatars0.githubusercontent.com/u/16747951?v=4","gravatar_id":"","url":"https://api.github.com/users/sysradium","html_url":"https://github.com/sysradium","followers_url":"https://api.github.com/users/sysradium/followers","following_url":"https://api.github.com/users/sysradium/following{/other_user}","gists_url":"https://api.github.com/users/sysradium/gists{/gist_id}","starred_url":"https://api.github.com/users/sysradium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sysradium/subscriptions","organizations_url":"https://api.github.com/users/sysradium/orgs","repos_url":"https://api.github.com/users/sysradium/repos","events_url":"https://api.github.com/users/sysradium/events{/privacy}","received_events_url":"https://api.github.com/users/sysradium/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":9,"deletions":5,"changed_files":3}}
{"actor":{"display_login":"sysradium"}}