{"action":"created","issue":{"url":"https://api.github.com/repos/JetBrains/teamcity-messages/issues/151","repository_url":"https://api.github.com/repos/JetBrains/teamcity-messages","labels_url":"https://api.github.com/repos/JetBrains/teamcity-messages/issues/151/labels{/name}","comments_url":"https://api.github.com/repos/JetBrains/teamcity-messages/issues/151/comments","events_url":"https://api.github.com/repos/JetBrains/teamcity-messages/issues/151/events","html_url":"https://github.com/JetBrains/teamcity-messages/issues/151","id":254949412,"number":151,"title":"UnicodeEncodeError: 'ascii' codec can't encode characters in position 270-272: ordinal not in range(128)","user":{"login":"bazuka-joe","id":3183089,"avatar_url":"https://avatars3.githubusercontent.com/u/3183089?v=4","gravatar_id":"","url":"https://api.github.com/users/bazuka-joe","html_url":"https://github.com/bazuka-joe","followers_url":"https://api.github.com/users/bazuka-joe/followers","following_url":"https://api.github.com/users/bazuka-joe/following{/other_user}","gists_url":"https://api.github.com/users/bazuka-joe/gists{/gist_id}","starred_url":"https://api.github.com/users/bazuka-joe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bazuka-joe/subscriptions","organizations_url":"https://api.github.com/users/bazuka-joe/orgs","repos_url":"https://api.github.com/users/bazuka-joe/repos","events_url":"https://api.github.com/users/bazuka-joe/events{/privacy}","received_events_url":"https://api.github.com/users/bazuka-joe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-09-04T06:48:32Z","updated_at":"2017-12-01T14:43:29Z","closed_at":null,"author_association":"NONE","body":"Hi!\r\n\r\nin my test there are Russian letters and tests in teamcity failed:\r\n\r\n```\r\n2017-09-04 06:38:11,075:ERROR:root:Uncaught exception!\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python3.6/runpy.py\", line 193, in _run_module_as_main\r\n    \"__main__\", mod_spec)\r\n  File \"/usr/local/lib/python3.6/runpy.py\", line 85, in _run_code\r\n    exec(code, run_globals)\r\n  File \"/usr/local/lib/python3.6/site-packages/teamcity/unittestpy.py\", line 171, in <module>\r\n    main(module=None, testRunner=TeamcityTestRunner())\r\n  File \"/usr/local/lib/python3.6/unittest/main.py\", line 95, in __init__\r\n    self.runTests()\r\n  File \"/usr/local/lib/python3.6/unittest/main.py\", line 256, in runTests\r\n    self.result = testRunner.run(self.test)\r\n  File \"/usr/local/lib/python3.6/unittest/runner.py\", line 176, in run\r\n    test(result)\r\n  File \"/usr/local/lib/python3.6/unittest/suite.py\", line 84, in __call__\r\n    return self.run(*args, **kwds)\r\n  File \"/usr/local/lib/python3.6/unittest/suite.py\", line 122, in run\r\n    test(result)\r\n  File \"/usr/local/lib/python3.6/unittest/suite.py\", line 84, in __call__\r\n    return self.run(*args, **kwds)\r\n  File \"/usr/local/lib/python3.6/unittest/suite.py\", line 122, in run\r\n    test(result)\r\n  File \"/usr/local/lib/python3.6/unittest/suite.py\", line 84, in __call__\r\n    return self.run(*args, **kwds)\r\n  File \"/usr/local/lib/python3.6/unittest/suite.py\", line 122, in run\r\n    test(result)\r\n  File \"/usr/local/lib/python3.6/unittest/case.py\", line 653, in __call__\r\n    return self.run(*args, **kwds)\r\n  File \"/usr/local/lib/python3.6/unittest/case.py\", line 613, in run\r\n    self._feedErrorsToResult(result, outcome.errors)\r\n  File \"/usr/local/lib/python3.6/unittest/case.py\", line 538, in _feedErrorsToResult\r\n    result.addSubTest(test.test_case, test, exc_info)\r\n  File \"/usr/local/lib/python3.6/site-packages/teamcity/unittestpy.py\", line 109, in addSubTest\r\n    self.messages.testStdOut(test_id, out=\"%s: ok\\n\" % self.get_test_id(subtest), flowId=test_id)\r\n  File \"/usr/local/lib/python3.6/site-packages/teamcity/messages.py\", line 131, in testStdOut\r\n    self.message('testStdOut', name=testName, out=out, flowId=flowId)\r\n  File \"/usr/local/lib/python3.6/site-packages/teamcity/messages.py\", line 68, in message\r\n    self.output.write(self.encode(message))\r\n  File \"/usr/local/lib/python3.6/site-packages/teamcity/messages.py\", line 39, in encode\r\n    value = value.encode(self.encoding)\r\nUnicodeEncodeError: 'ascii' codec can't encode characters in position 270-272: ordinal not in range(128)\r\n```\r\n\r\n```\r\npip3.6 show teamcity-messages\r\nName: teamcity-messages\r\nVersion: 1.21\r\nSummary: Send test results to TeamCity continuous integration server from unittest, nose, py.test, twisted trial (Python 2.4+)\r\nHome-page: https://github.com/JetBrains/teamcity-messages\r\nAuthor: JetBrains\r\nAuthor-email: teamcity-feedback@jetbrains.com\r\nLicense: Apache 2.0\r\nLocation: /usr/local/lib/python3.6/site-packages\r\nRequires:\r\n```\r\n\r\n\r\nhttps://youtrack.jetbrains.com/issue/TW-51403"},"comment":{"url":"https://api.github.com/repos/JetBrains/teamcity-messages/issues/comments/348512090","html_url":"https://github.com/JetBrains/teamcity-messages/issues/151#issuecomment-348512090","issue_url":"https://api.github.com/repos/JetBrains/teamcity-messages/issues/151","id":348512090,"user":{"login":"throwable-one","id":7673963,"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},"created_at":"2017-12-01T14:43:29Z","updated_at":"2017-12-01T14:43:29Z","author_association":"CONTRIBUTOR","body":"Hello.\r\nHave you tried to set ``PYTHONIOENCODING=UTF-8`` env. variable for agent or configuration?"}}
{"actor":{"display_login":"throwable-one"}}