As reported by Barry Warsaw in a comment attached to issue 323:
Note too that test_unicode_2 fails when sys.getfilesystemencoding() is not
utf-8. It can be ANSI_X3.4-1968 (aka ASCII) in the Ubuntu schroot build
environments. In that case, the open() call in _open_resource() throws a
UnicodeEncodeError instead of the expected IOError.
Original issue reported on code.google.com by kurtmckee on 5 Feb 2012 at 12:08
Original issue reported on code.google.com by
kurtmckee
on 5 Feb 2012 at 12:08