1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
From: Federico Ceratto <federico@debian.org>
Subject: Ignore '~' #912183
Forwarded: no
--- a/test_cookies.py
+++ b/test_cookies.py
@@ -2225,7 +2225,7 @@
else:
assert cookie_value_re.match(quoted)
- assert set(dont_quote) == set("!#$%&'()*+/:<=>?@[]^`{|}~")
+ assert set(dont_quote) - set('~') == set("!#$%&'()*+/:<=>?@[]^`{|}")
# From 128 on urllib.quote will not work on a unichr() return value.
# We'll want to encode utf-8 values into ASCII, then do the quoting.
@@ -2257,7 +2257,7 @@
else:
assert extension_av_re.match(quoted)
- assert set(dont_quote) == set(' !"#$%&\'()*+,/:<=>?@[\\]^`{|}~')
+ assert set(dont_quote) - set('~') == set(' !"#$%&\'()*+,/:<=>?@[\\]^`{|}')
test_encode_cookie_value = _simple_test(encode_cookie_value,
|