Serhiy Storchaka added the comment:

> Your test is skipped if the locale encoding is ASCII, whereas the purpopse of 
> PYTHONIOENCODING is to write non-ASCII characters without having to care of 
> the locale encoding.

This case was tested in previous test.

> If you really want to check the codec itself, you should use known sequence, 
> ex: 'héllo€'.encode('cp1252') gives b'h\xe9llo\x80'.

We can't be sure that OS supports cp1252 (or any other non-default) locale.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue19058>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to