mkwiatkowski / pinocchio

pinocchio is a set of extensions to the nose unit testing framework for Python
38 stars 13 forks source link

fix encoding errors with io.StringIO in python2 #14

Closed apieum closed 10 years ago

apieum commented 10 years ago

Sorry my last PR introduced a bug in some cases with unicode. io.StringIO treat output as unicode, in py2 io.StringIO seems to call StringIO.StringIO.getvalue() which raises UnicodeError for char > 128.

mkwiatkowski commented 10 years ago

Thanks! Merged and released as 0.4.1.