[issue19457] test.test_codeccallbacks.CodecCallbackTest.test_xmlcharrefreplace_with_surrogates() and test.test_unicode.UnicodeTest.test_encode_decimal_with_surrogates() loaded from *.pyc files fail with Python supporting wide unicode
Serhiy Storchaka
report at bugs.python.org
Thu Oct 31 14:19:06 CET 2013
Serhiy Storchaka added the comment:
> + if u'\ud83d\udc9d' != u'\U0001f49d':
>
> If would prefer a test on sys.maxunicode, something like:
>
> if sys.maxunicode == 0xffff:
No. 1. The check is true only on wide build. 2. It depends on how test module was loaded, true if it loaded from .py-file and false if it loaded from .py[co]-file.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19457>
_______________________________________
More information about the Python-bugs-list
mailing list