Django test client can't store cookies after upgrade to Python 2.6.5
|Reported by:||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
After upgrading to Python 2.6.5, Django test client is storing malformed cookies, thus not allowing to test anything session-related
The error is relatively hard to track, as no exception is raised by DB session backend.
File-based session backend raises
SuspiciousOperation: Invalid characters (directory components) in session key
It looks like the error is caused by the change to Cookie module introduced here: http://svn.python.org/view/python/trunk/Lib/Cookie.py?r1=71029&r2=74647
Not sure if this change affects other libraries.