Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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.
  • Loading branch information...
commit 7b875a56265b98544359d1925efa8a6c0547c63d 1 parent a670593
Ian Clelland authored September 28, 2012
2  tests/regressiontests/requests/tests.py
@@ -56,7 +56,7 @@ def test_wsgirequest_repr(self):
56 56
                          str_prefix("<WSGIRequest\npath:/otherpath/,\nGET:{%(_)s'a': %(_)s'b'},\nPOST:{%(_)s'c': %(_)s'd'},\nCOOKIES:{%(_)s'e': %(_)s'f'},\nMETA:{%(_)s'g': %(_)s'h'}>"))
57 57
 
58 58
     def test_parse_cookie(self):
59  
-        self.assertEqual(parse_cookie('invalid:key=true'), {})
  59
+        self.assertEqual(parse_cookie('invalid@key=true'), {})
60 60
 
61 61
     def test_httprequest_location(self):
62 62
         request = HttpRequest()

0 notes on commit 7b875a5

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