From 0bfac6e5d8671f21327b1a8413d68cf23285105f Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Wed, 2 Jul 2008 21:52:42 +0000 Subject: [PATCH] Revert r64673 and instead just change the file encoding. --- Lib/test/test_cookielib.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Lib/test/test_cookielib.py b/Lib/test/test_cookielib.py index d6e1661a65..66f9a83041 100644 --- a/Lib/test/test_cookielib.py +++ b/Lib/test/test_cookielib.py @@ -1,4 +1,4 @@ -# -*- coding: utf-8 -*- +# -*- coding: latin-1 -*- """Tests for cookielib.py.""" import re, os, time @@ -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 -- 2.40.0