[issue28541] Improve test coverage for json library - loading bytes

Serhiy Storchaka report at bugs.python.org
Thu Oct 27 11:55:39 EDT 2016


Serhiy Storchaka added the comment:

The patch in issue17909 was written to implement encoding detecting described in RFC 4627 [1]. And the test uses RFC 4627 conforming data. A single codepoint "5" is not valid in RFC 4627, but is valid in RFC 7159 [2].

The comment in your patch is not accurate since '5' is encoded to 1 byte with utf-8 and 4 bytes with utf-32*.

[1] https://tools.ietf.org/html/rfc4627
[2] https://tools.ietf.org/html/rfc7159

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28541>
_______________________________________


More information about the Python-bugs-list mailing list