bpo-45874: Handle empty query string correctly in urllib.parse.parse_qsl (#29716)

This commit is contained in:
Christian Sattler 2021-12-12 09:41:12 +01:00 committed by GitHub
parent 4325a766f5
commit e6fe10d340
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 3 deletions

View file

@ -51,7 +51,7 @@ def do_test(buf, method):
return ComparableException(err)
parse_strict_test_cases = [
("", ValueError("bad query field: ''")),
("", {}),
("&", ValueError("bad query field: ''")),
("&&", ValueError("bad query field: ''")),
# Should the next few really be valid?