From 02dda22832d313bde18798b2f5f1e9120a849815 Mon Sep 17 00:00:00 2001 From: Ian Clelland Date: Fri, 28 Sep 2012 08:09:05 -0700 Subject: [PATCH] Don't use : as an invalid cookie character Since http://bugs.python.org/issue2193 has been resolved in favour of the colon in cookie names, we need to test invalid cookie removal using a different character. "@" is still considered invalid by all sources. --- tests/regressiontests/requests/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/regressiontests/requests/tests.py b/tests/regressiontests/requests/tests.py index 9a3197a06a..6522620d5f 100644 --- a/tests/regressiontests/requests/tests.py +++ b/tests/regressiontests/requests/tests.py @@ -57,7 +57,7 @@ class RequestsTests(unittest.TestCase): str_prefix("")) def test_parse_cookie(self): - self.assertEqual(parse_cookie('invalid:key=true'), {}) + self.assertEqual(parse_cookie('invalid@key=true'), {}) def test_httprequest_location(self): request = HttpRequest()