Commit 0bfac6e5 authored by Brett Cannon's avatar Brett Cannon

Revert r64673 and instead just change the file encoding.

parent 3bff9d26
# -*- 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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment