Browse files

Fixed #16987 -- Improved error message for session tests. Thanks jMyl…

…es and DiskSpace for the patch.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
PaulMcMillan committed Oct 5, 2011
1 parent 749f072 commit 1ac2bb9b8e299e82e64d77cd97028dc907342dd8
Showing with 4 additions and 1 deletion.
  1. +4 −1 django/contrib/sessions/
@@ -162,7 +162,10 @@ def test_invalid_key(self):
# removed the key) results in a new key being generated.
session = self.backend('1')
except AttributeError:"The session object did not save properly. Middleware may be saving cache items without namespaces.")
self.assertNotEqual(session.session_key, '1')
self.assertEqual(session.get('cat'), None)

0 comments on commit 1ac2bb9

Please sign in to comment.