Revert r64673 and instead just change the file encoding.

This commit is contained in:
Brett Cannon 2008-07-02 21:52:42 +00:00
parent 3bff9d269c
commit 0bfac6e5d8
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
# -*- coding: utf-8 -*- # -*- coding: latin-1 -*-
"""Tests for cookielib.py.""" """Tests for cookielib.py."""
import re, os, time import re, os, time
@ -1530,13 +1530,13 @@ class LWPCookieTests(TestCase):
"foo = bar; version = 1") "foo = bar; version = 1")
cookie = interact_2965( 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'); 'bar=baz; path="/foo/"; version=1');
version_re = re.compile(r'^\$version=\"?1\"?', re.I) version_re = re.compile(r'^\$version=\"?1\"?', re.I)
self.assert_("foo=bar" in cookie and version_re.search(cookie)) self.assert_("foo=bar" in cookie and version_re.search(cookie))
cookie = interact_2965( cookie = interact_2965(
c, "http://www.acme.com/foo/%25/<<%0anewå/æøå") c, "http://www.acme.com/foo/%25/<<%0anewå/æøå")
self.assert_(not cookie) self.assert_(not cookie)
# unicode URL doesn't raise exception # unicode URL doesn't raise exception