Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

[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: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 9f78e46 commit 4384b164ccdd2d45e38cc3116f9e49c50c4268fa @jacobian jacobian committed
Showing with 5 additions and 2 deletions.
  1. +5 −2 tests/regressiontests/httpwrappers/
7 tests/regressiontests/httpwrappers/
@@ -475,10 +475,13 @@ def test_encode(self):
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):

0 comments on commit 4384b16

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