{"action":"closed","issue":{"url":"https://api.github.com/repos/yunojuno/django-juno-testrunner/issues/11","labels_url":"https://api.github.com/repos/yunojuno/django-juno-testrunner/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/yunojuno/django-juno-testrunner/issues/11/comments","events_url":"https://api.github.com/repos/yunojuno/django-juno-testrunner/issues/11/events","html_url":"https://github.com/yunojuno/django-juno-testrunner/issues/11","id":60481703,"number":11,"title":"Unicode cannot be written to test-failure log","user":{"login":"stevejalim","id":101457,"avatar_url":"https://avatars.githubusercontent.com/u/101457?v=3","gravatar_id":"","url":"https://api.github.com/users/stevejalim","html_url":"https://github.com/stevejalim","followers_url":"https://api.github.com/users/stevejalim/followers","following_url":"https://api.github.com/users/stevejalim/following{/other_user}","gists_url":"https://api.github.com/users/stevejalim/gists{/gist_id}","starred_url":"https://api.github.com/users/stevejalim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevejalim/subscriptions","organizations_url":"https://api.github.com/users/stevejalim/orgs","repos_url":"https://api.github.com/users/stevejalim/repos","events_url":"https://api.github.com/users/stevejalim/events{/privacy}","received_events_url":"https://api.github.com/users/stevejalim/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-10T10:54:57Z","updated_at":"2015-03-10T13:10:01Z","closed_at":"2015-03-10T13:10:01Z","body":"The output needs to be `.decode(\"utf8\")`ed before written to the failure file, most likely\r\n\r\n```\r\n======================================================================\r\nERROR: test_submit_currency_symbol (yunojuno.apps.profiles.tests.test_profile.ProfileInfoUpdateFormTestCase)\r\nTest that currency symbols are stripped.\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"manage.py\", line 10, in <module>\r\n    execute_from_command_line(sys.argv)\r\n  File \"/home/vagrant/.virtualenvs/yunojuno/local/lib/python2.7/site-packages/django/core/management/__init__.py\", line 385, in execute_from_command_line\r\n    utility.execute()\r\n  File \"/home/vagrant/.virtualenvs/yunojuno/local/lib/python2.7/site-packages/django/core/management/__init__.py\", line 377, in execute\r\n    self.fetch_command(subcommand).run_from_argv(self.argv)\r\n  File \"/home/vagrant/.virtualenvs/yunojuno/local/lib/python2.7/site-packages/django/core/management/commands/test.py\", line 50, in run_from_argv\r\n    super(Command, self).run_from_argv(argv)\r\n  File \"/home/vagrant/.virtualenvs/yunojuno/local/lib/python2.7/site-packages/django/core/management/base.py\", line 288, in run_from_argv\r\n    self.execute(*args, **options.__dict__)\r\n  File \"/home/vagrant/.virtualenvs/yunojuno/local/lib/python2.7/site-packages/django/core/management/commands/test.py\", line 71, in execute\r\n    super(Command, self).execute(*args, **options)\r\n  File \"/home/vagrant/.virtualenvs/yunojuno/local/lib/python2.7/site-packages/django/core/management/base.py\", line 338, in execute\r\n    output = self.handle(*args, **options)\r\n  File \"/home/vagrant/.virtualenvs/yunojuno/local/lib/python2.7/site-packages/django/core/management/commands/test.py\", line 88, in handle\r\n    failures = test_runner.run_tests(test_labels)\r\n  File \"/home/vagrant/.virtualenvs/yunojuno/local/lib/python2.7/site-packages/junorunner/testrunner.py\", line 28, in run_tests\r\n    result = self.run_suite(suite)\r\n  File \"/home/vagrant/.virtualenvs/yunojuno/local/lib/python2.7/site-packages/junorunner/runner.py\", line 28, in run_suite\r\n    ).run(suite)\r\n  File \"/home/vagrant/.virtualenvs/yunojuno/local/lib/python2.7/site-packages/junorunner/extended_runner.py\", line 365, in run\r\n    stopTestRun()\r\n  File \"/home/vagrant/.virtualenvs/yunojuno/local/lib/python2.7/site-packages/junorunner/extended_runner.py\", line 311, in stopTestRun\r\n    self.printErrors()\r\n  File \"/home/vagrant/.virtualenvs/yunojuno/local/lib/python2.7/site-packages/junorunner/extended_runner.py\", line 294, in printErrors\r\n    self.printErrorList('ERROR', self.errors)\r\n  File \"/home/vagrant/.virtualenvs/yunojuno/local/lib/python2.7/site-packages/junorunner/extended_runner.py\", line 299, in printErrorList\r\n    self.printSingleError(flavour, test, err)\r\n  File \"/home/vagrant/.virtualenvs/yunojuno/local/lib/python2.7/site-packages/junorunner/extended_runner.py\", line 307, in printSingleError\r\n    self.stream.writeln(\"%s\" % err)\r\nUnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 178: ordinal not in range(128)\r\n```"}}