[New-bugs-announce] [issue26775] Improve test coverage on urllib.parse

Luiz Poleto report at bugs.python.org
Sat Apr 16 02:54:29 EDT 2016


New submission from Luiz Poleto:

urllib.parse has two methods, parse_qs and parse_qsl to parse a query string and return its parameters/values as a dictionary or a list, respectively. However, the unit tests only tests parse_qsl, which is also incomplete since both parse_qs and parse_qsl support & and ; as separators for key=value pairs and there are only test scenarios using &.

The attached patch add a new test for parse_qs as well as new scenarios including ; as separator.

----------
components: Tests
files: urllib.parse_test_coverage.patch
keywords: patch
messages: 263538
nosy: luiz.poleto
priority: normal
severity: normal
status: open
title: Improve test coverage on urllib.parse
type: enhancement
versions: Python 3.6
Added file: http://bugs.python.org/file42477/urllib.parse_test_coverage.patch

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


More information about the New-bugs-announce mailing list