summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-07-23 03:46:37 (GMT)
committerGuido van Rossum <guido@python.org>2007-07-23 03:46:37 (GMT)
commitf520c05456909ee3d2e5f9e47b3c85b0123d7c4b (patch)
tree49847f63fa9a454016d362ecdd4bd0f8c0f0c39f /Lib
parent13d7799f87ac3da61dfb3437b0768cfedc1d763b (diff)
downloadcpython-f520c05456909ee3d2e5f9e47b3c85b0123d7c4b.zip
cpython-f520c05456909ee3d2e5f9e47b3c85b0123d7c4b.tar.gz
cpython-f520c05456909ee3d2e5f9e47b3c85b0123d7c4b.tar.bz2
Don't use cwnon-ASCII characters in the source; use \ooo escapes.
(This doesn't fix test_cookielib, just removes the SyntaxError.)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_cookielib.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/test/test_cookielib.py b/Lib/test/test_cookielib.py
index a4d0fe2..d72a3a8 100644
--- a/Lib/test/test_cookielib.py
+++ b/Lib/test/test_cookielib.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""Tests for cookielib.py."""
import re, os, time
@@ -1530,13 +1529,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\345/\346\370\345",
'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\345/\346\370\345")
self.assert_(not cookie)
# unicode URL doesn't raise exception