FIx some Latin-1 characters to be UTF-8 as the file encoding specifies.
Closes issue #3261. THankjs Leo Soto for the bug report.
This commit is contained in:
parent
76cf55f499
commit
3bff9d269c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue