Kaydet (Commit) 75d4e932 authored tarafından Jacob Kaplan-Moss's avatar Jacob Kaplan-Moss

Fixed (what I hope is) the last Python 2.4 incompatibility, this one in the httpwrappers tests.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@12436 bcc190cf-cafb-0310-a4f2-bffc1f526a37
üst 76afc302
...@@ -475,10 +475,13 @@ class Cookies(TestCase): ...@@ -475,10 +475,13 @@ class Cookies(TestCase):
""" """
Test that we don't output tricky characters in encoded value Test that we don't output tricky characters in encoded value
""" """
# Python 2.4 compatibility note: Python 2.4's cookie implementation
# always returns Set-Cookie headers terminating in semi-colons.
# That's not the bug this test is looking for, so ignore it.
c = CompatCookie() c = CompatCookie()
c['test'] = "An,awkward;value" c['test'] = "An,awkward;value"
self.assert_(";" not in c.output()) # IE compat self.assert_(";" not in c.output().rstrip(';')) # IE compat
self.assert_("," not in c.output()) # Safari compat self.assert_("," not in c.output().rstrip(';')) # Safari compat
def test_decode(self): def test_decode(self):
""" """
......
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