Author: jacob
Date: 2010-02-14 20:17:07 -0600 (Sun, 14 Feb 2010)
New Revision: 12436

Modified:
   django/trunk/tests/regressiontests/httpwrappers/tests.py
Log:
Fixed (what I hope is) the last Python 2.4 incompatibility, this one in the 
httpwrappers tests.

Modified: django/trunk/tests/regressiontests/httpwrappers/tests.py
===================================================================
--- django/trunk/tests/regressiontests/httpwrappers/tests.py    2010-02-14 
20:33:32 UTC (rev 12435)
+++ django/trunk/tests/regressiontests/httpwrappers/tests.py    2010-02-15 
02:17:07 UTC (rev 12436)
@@ -475,10 +475,13 @@
         """
         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):
         """

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to