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

Eric Appelt report at bugs.python.org
Wed Oct 26 23:06:57 EDT 2016


New submission from Eric Appelt:

Increase test coverage of the json library, specifically the detect_encoding() function in the __init__ module, which is used to handle the autodetection of the encoding of a bytes object passed to json.loads().

This function was added in issue 17909 which extended the json.loads() function to accept bytes.

Note that this is a small patch as I am following section 5 of the developer guide and I am trying to acquaint myself with the process as a first time contributor. I found this missing coverage just by semi-randomly looking at individual modules of interest. Please let me know if I have made any general mistakes in constructing this ticket. Thanks!

----------
components: Tests
files: mywork.patch
keywords: patch
messages: 279521
nosy: Eric Appelt
priority: normal
severity: normal
status: open
title: Improve test coverage for json library - loading bytes
versions: Python 3.6
Added file: http://bugs.python.org/file45234/mywork.patch

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


More information about the New-bugs-announce mailing list