summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2008-07-02 21:40:11 (GMT)
committerBrett Cannon <bcannon@gmail.com>2008-07-02 21:40:11 (GMT)
commit3bff9d269c8fece4126c4698e67e79362b53bfd1 (patch)
tree6e8aeb46eef91c1ffb56ff165e18170848d8b169 /Lib/test
parent76cf55f49965f485633ac78bb34890ad6f77a876 (diff)
downloadcpython-3bff9d269c8fece4126c4698e67e79362b53bfd1.zip
cpython-3bff9d269c8fece4126c4698e67e79362b53bfd1.tar.gz
cpython-3bff9d269c8fece4126c4698e67e79362b53bfd1.tar.bz2
FIx some Latin-1 characters to be UTF-8 as the file encoding specifies.
Closes issue #3261. THankjs Leo Soto for the bug report.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_cookielib.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_cookielib.py b/Lib/test/test_cookielib.py
index 991506c..d6e1661 100644
--- a/Lib/test/test_cookielib.py
+++ b/Lib/test/test_cookielib.py
@@ -1530,13 +1530,13 @@ class LWPCookieTests(TestCase):
"foo = bar; version = 1")
cookie = interact_2965(
- c, "http://www.acme.com/foo%2f%25/<<%0anewå/æøå",
+ c, "http://www.acme.com/foo%2f%25/<<%0anewå/æøå",
'bar=baz; path="/foo/"; version=1');
version_re = re.compile(r'^\$version=\"?1\"?', re.I)
self.assert_("foo=bar" in cookie and version_re.search(cookie))
cookie = interact_2965(
- c, "http://www.acme.com/foo/%25/<<%0anewå/æøå")
+ c, "http://www.acme.com/foo/%25/<<%0anewå/æøå")
self.assert_(not cookie)
# unicode URL doesn't raise exception