summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Kaplan-Moss <jacob@jacobian.org>2010-02-15 02:17:07 +0000
committerJacob Kaplan-Moss <jacob@jacobian.org>2010-02-15 02:17:07 +0000
commit75d4e9326f0a1e2574f0b442e19bf14a424d7bf5 (patch)
tree1f5c887dd2caaf57211cfd736cc46bd7eb151740
parent76afc30229812547f0624fc681710a877fe0fde8 (diff)
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
-rw-r--r--tests/regressiontests/httpwrappers/tests.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/regressiontests/httpwrappers/tests.py b/tests/regressiontests/httpwrappers/tests.py
index 09da4476b4..132472ca37 100644
--- a/tests/regressiontests/httpwrappers/tests.py
+++ b/tests/regressiontests/httpwrappers/tests.py
@@ -475,10 +475,13 @@ class Cookies(TestCase):
"""
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['test'] = "An,awkward;value"
- self.assert_(";" not in c.output()) # IE compat
- self.assert_("," not in c.output()) # Safari compat
+ self.assert_(";" not in c.output().rstrip(';')) # IE compat
+ self.assert_("," not in c.output().rstrip(';')) # Safari compat
def test_decode(self):
"""