nose-devs/nose — Issue #52: Failure to encode unicode docstring or description, missing sys.stdout.encoding attribute
Author: jpellerin
Created: 2011-12-14 15:57:12+00:00
State: open

When running under python-nose the supplied sys.stdout does not have
encoding attribute. It is handy for a code that tries to adapt its output
to the console encoding.

Also when python-nose attempts to print unicode description of a test (from
a docstring or from a description attribute) it fails to encode it to the
console encoding.

def test_1():
u"č"
pass
def test_2():
pass
test_2.description = u"ř"

Run with verbose set. Tested on 0.11.1, winxp.

Google Code Info:
Issue #: 295
Author: zbynek.winkler
Created On: 2009-10-10T17:54:43.000Z
Closed On: