{"action":"created","issue":{"url":"https://api.github.com/repos/JetBrains/teamcity-messages/issues/192","repository_url":"https://api.github.com/repos/JetBrains/teamcity-messages","labels_url":"https://api.github.com/repos/JetBrains/teamcity-messages/issues/192/labels{/name}","comments_url":"https://api.github.com/repos/JetBrains/teamcity-messages/issues/192/comments","events_url":"https://api.github.com/repos/JetBrains/teamcity-messages/issues/192/events","html_url":"https://github.com/JetBrains/teamcity-messages/issues/192","id":356751221,"node_id":"MDU6SXNzdWUzNTY3NTEyMjE=","number":192,"title":"New version can't work with unicode symbols in test case name","user":{"login":"TimurNurlygayanov","id":3113460,"node_id":"MDQ6VXNlcjMxMTM0NjA=","avatar_url":"https://avatars2.githubusercontent.com/u/3113460?v=4","gravatar_id":"","url":"https://api.github.com/users/TimurNurlygayanov","html_url":"https://github.com/TimurNurlygayanov","followers_url":"https://api.github.com/users/TimurNurlygayanov/followers","following_url":"https://api.github.com/users/TimurNurlygayanov/following{/other_user}","gists_url":"https://api.github.com/users/TimurNurlygayanov/gists{/gist_id}","starred_url":"https://api.github.com/users/TimurNurlygayanov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TimurNurlygayanov/subscriptions","organizations_url":"https://api.github.com/users/TimurNurlygayanov/orgs","repos_url":"https://api.github.com/users/TimurNurlygayanov/repos","events_url":"https://api.github.com/users/TimurNurlygayanov/events{/privacy}","received_events_url":"https://api.github.com/users/TimurNurlygayanov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"throwable-one","id":7673963,"node_id":"MDQ6VXNlcjc2NzM5NjM=","avatar_url":"https://avatars3.githubusercontent.com/u/7673963?v=4","gravatar_id":"","url":"https://api.github.com/users/throwable-one","html_url":"https://github.com/throwable-one","followers_url":"https://api.github.com/users/throwable-one/followers","following_url":"https://api.github.com/users/throwable-one/following{/other_user}","gists_url":"https://api.github.com/users/throwable-one/gists{/gist_id}","starred_url":"https://api.github.com/users/throwable-one/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/throwable-one/subscriptions","organizations_url":"https://api.github.com/users/throwable-one/orgs","repos_url":"https://api.github.com/users/throwable-one/repos","events_url":"https://api.github.com/users/throwable-one/events{/privacy}","received_events_url":"https://api.github.com/users/throwable-one/received_events","type":"User","site_admin":false},"assignees":[{"login":"throwable-one","id":7673963,"node_id":"MDQ6VXNlcjc2NzM5NjM=","avatar_url":"https://avatars3.githubusercontent.com/u/7673963?v=4","gravatar_id":"","url":"https://api.github.com/users/throwable-one","html_url":"https://github.com/throwable-one","followers_url":"https://api.github.com/users/throwable-one/followers","following_url":"https://api.github.com/users/throwable-one/following{/other_user}","gists_url":"https://api.github.com/users/throwable-one/gists{/gist_id}","starred_url":"https://api.github.com/users/throwable-one/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/throwable-one/subscriptions","organizations_url":"https://api.github.com/users/throwable-one/orgs","repos_url":"https://api.github.com/users/throwable-one/repos","events_url":"https://api.github.com/users/throwable-one/events{/privacy}","received_events_url":"https://api.github.com/users/throwable-one/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2018-09-04T10:38:26Z","updated_at":"2018-09-17T16:15:11Z","closed_at":null,"author_association":"NONE","body":"It is regression issue. Issue not reproduced on version 1.21, but reproduced with the latest version.\r\n\r\n**Steps To Reproduce:**\r\n1) Install latest version of teamcity-messages by pip\r\n2) Run test with unicode symbols in test name (example - unicode parameter for PyTest test case will be included in test case name)\r\n\r\n**Expected Result:**\r\nAll works fine.\r\n\r\n**Actual Result:**\r\nTests failed with traceback:\r\n\r\n`[06:12:22]INTERNALERROR>   File \"/var/lib/buildagent/work/b174579a3751dcf0/env/lib/python3.4/site-packages/pluggy/manager.py\", line 61, in <lambda>\r\n[06:12:22]INTERNALERROR>     firstresult=hook.spec_opts.get('firstresult'),\r\n[06:12:22]INTERNALERROR>   File \"/var/lib/buildagent/work/b174579a3751dcf0/env/lib/python3.4/site-packages/pluggy/callers.py\", line 201, in _multicall\r\n[06:12:22]INTERNALERROR>     return outcome.get_result()\r\n[06:12:22]INTERNALERROR>   File \"/var/lib/buildagent/work/b174579a3751dcf0/env/lib/python3.4/site-packages/pluggy/callers.py\", line 76, in get_result\r\n[06:12:22]INTERNALERROR>     raise ex[1].with_traceback(ex[2])\r\n[06:12:22]INTERNALERROR>   File \"/var/lib/buildagent/work/b174579a3751dcf0/env/lib/python3.4/site-packages/pluggy/callers.py\", line 180, in _multicall\r\n[06:12:22]INTERNALERROR>     res = hook_impl.function(*args)\r\n[06:12:22]INTERNALERROR>   File \"/var/lib/buildagent/work/b174579a3751dcf0/env/lib/python3.4/site-packages/teamcity/pytest_plugin.py\", line 205, in pytest_runtest_logreport\r\n[06:12:22]INTERNALERROR>     self.report_test_output(report, test_id)\r\n[06:12:22]INTERNALERROR>   File \"/var/lib/buildagent/work/b174579a3751dcf0/env/lib/python3.4/site-packages/teamcity/pytest_plugin.py\", line 153, in report_test_output\r\n[06:12:22]INTERNALERROR>     self.teamcity.testStdOut(test_id, out=chunk, flowId=test_id)\r\n[06:12:22]INTERNALERROR>   File \"/var/lib/buildagent/work/b174579a3751dcf0/env/lib/python3.4/site-packages/teamcity/messages.py\", line 131, in testStdOut\r\n[06:12:22]INTERNALERROR>     self.message('testStdOut', name=testName, out=out, flowId=flowId)\r\n[06:12:22]INTERNALERROR>   File \"/var/lib/buildagent/work/b174579a3751dcf0/env/lib/python3.4/site-packages/teamcity/messages.py\", line 68, in message\r\n[06:12:22]INTERNALERROR>     self.output.write(self.encode(message))\r\n[06:12:22]INTERNALERROR>   File \"/var/lib/buildagent/work/b174579a3751dcf0/env/lib/python3.4/site-packages/teamcity/messages.py\", line 39, in encode\r\n[06:12:22]INTERNALERROR>     value = value.encode(self.encoding)\r\n[06:12:22]INTERNALERROR> UnicodeEncodeError: 'ascii' codec can't encode characters in position 693-713: ordinal not in range(128)\r\n[06:12:22]Process exited with code 3\r\n `"},"comment":{"url":"https://api.github.com/repos/JetBrains/teamcity-messages/issues/comments/422077875","html_url":"https://github.com/JetBrains/teamcity-messages/issues/192#issuecomment-422077875","issue_url":"https://api.github.com/repos/JetBrains/teamcity-messages/issues/192","id":422077875,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMjA3Nzg3NQ==","user":{"login":"TimurNurlygayanov","id":3113460,"node_id":"MDQ6VXNlcjMxMTM0NjA=","avatar_url":"https://avatars2.githubusercontent.com/u/3113460?v=4","gravatar_id":"","url":"https://api.github.com/users/TimurNurlygayanov","html_url":"https://github.com/TimurNurlygayanov","followers_url":"https://api.github.com/users/TimurNurlygayanov/followers","following_url":"https://api.github.com/users/TimurNurlygayanov/following{/other_user}","gists_url":"https://api.github.com/users/TimurNurlygayanov/gists{/gist_id}","starred_url":"https://api.github.com/users/TimurNurlygayanov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TimurNurlygayanov/subscriptions","organizations_url":"https://api.github.com/users/TimurNurlygayanov/orgs","repos_url":"https://api.github.com/users/TimurNurlygayanov/repos","events_url":"https://api.github.com/users/TimurNurlygayanov/events{/privacy}","received_events_url":"https://api.github.com/users/TimurNurlygayanov/received_events","type":"User","site_admin":false},"created_at":"2018-09-17T16:15:10Z","updated_at":"2018-09-17T16:15:10Z","author_association":"NONE","body":"I've found the workaround!!!\r\n\r\nJust add the following line into the beginning of all files with tests:\r\n\r\n# -*- coding: utf-8 -*-"}}
{"actor":{"display_login":"TimurNurlygayanov"}}