From: Brett Cannon Date: Wed, 2 Jul 2008 21:40:11 +0000 (+0000) Subject: FIx some Latin-1 characters to be UTF-8 as the file encoding specifies. X-Git-Tag: v2.6b2~123 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3bff9d269c8fece4126c4698e67e79362b53bfd1;p=thirdparty%2FPython%2Fcpython.git FIx some Latin-1 characters to be UTF-8 as the file encoding specifies. Closes issue #3261. THankjs Leo Soto for the bug report. --- diff --git a/Lib/test/test_cookielib.py b/Lib/test/test_cookielib.py index 991506cb5488..d6e1661a65ec 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