Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[1.1.X] Fixed (what I hope is) the last Python 2.4 incompatibility, t…

…his one in the httpwrappers tests.

Backport of [12436] from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@12437 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 4384b164ccdd2d45e38cc3116f9e49c50c4268fa 1 parent 9f78e46
Jacob Kaplan-Moss authored February 15, 2010
7  tests/regressiontests/httpwrappers/tests.py
@@ -475,10 +475,13 @@ def test_encode(self):
475 475
         """
476 476
         Test that we don't output tricky characters in encoded value
477 477
         """
  478
+        # Python 2.4 compatibility note: Python 2.4's cookie implementation
  479
+        # always returns Set-Cookie headers terminating in semi-colons.
  480
+        # That's not the bug this test is looking for, so ignore it.
478 481
         c = CompatCookie()
479 482
         c['test'] = "An,awkward;value"
480  
-        self.assert_(";" not in c.output()) # IE compat
481  
-        self.assert_("," not in c.output()) # Safari compat
  483
+        self.assert_(";" not in c.output().rstrip(';')) # IE compat
  484
+        self.assert_("," not in c.output().rstrip(';')) # Safari compat
482 485
 
483 486
     def test_decode(self):
484 487
         """

0 notes on commit 4384b16

Please sign in to comment.
Something went wrong with that request. Please try again.