diff options
author | Guido van Rossum <guido@python.org> | 2008-08-18 21:44:30 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2008-08-18 21:44:30 +0000 |
commit | 52dbbb906804f36067ecbc8c89a00cdab545bdb2 (patch) | |
tree | 1b923b821dc0547f6fa3e30401c7dac177a8f557 /Lib/test/test_cgi.py | |
parent | 4171da5c9d899dc64cb15f177f05b9de05563148 (diff) | |
download | cpython-git-52dbbb906804f36067ecbc8c89a00cdab545bdb2.tar.gz |
- Issue #3300: make urllib.parse.[un]quote() default to UTF-8.
Code contributed by Matt Giuca. quote() now encodes the input
before quoting, unquote() decodes after unquoting. There are
new arguments to change the encoding and errors settings.
There are also new APIs to skip the encode/decode steps.
[un]quote_plus() are also affected.
Diffstat (limited to 'Lib/test/test_cgi.py')
-rw-r--r-- | Lib/test/test_cgi.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_cgi.py b/Lib/test/test_cgi.py index 9381a3c604..cc11acc04f 100644 --- a/Lib/test/test_cgi.py +++ b/Lib/test/test_cgi.py @@ -68,6 +68,8 @@ parse_qsl_test_cases = [ ("&a=b", [('a', 'b')]), ("a=a+b&b=b+c", [('a', 'a b'), ('b', 'b c')]), ("a=1&a=2", [('a', '1'), ('a', '2')]), + ("a=%26&b=%3D", [('a', '&'), ('b', '=')]), + ("a=%C3%BC&b=%CA%83", [('a', '\xfc'), ('b', '\u0283')]), ] parse_strict_test_cases = [ |