Author: jacob
Date: 2010-02-14 20:18:15 -0600 (Sun, 14 Feb 2010)
New Revision: 12437

Modified:
   django/branches/releases/1.1.X/tests/regressiontests/httpwrappers/tests.py
Log:
[1.1.X] Fixed (what I hope is) the last Python 2.4 incompatibility, this one in 
the httpwrappers tests.

Backport of [12436] from trunk.

Modified: 
django/branches/releases/1.1.X/tests/regressiontests/httpwrappers/tests.py
===================================================================
--- django/branches/releases/1.1.X/tests/regressiontests/httpwrappers/tests.py  
2010-02-15 02:17:07 UTC (rev 12436)
+++ django/branches/releases/1.1.X/tests/regressiontests/httpwrappers/tests.py  
2010-02-15 02:18:15 UTC (rev 12437)
@@ -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