diff options
| author | Tim Graham <timograham@gmail.com> | 2015-05-11 09:58:43 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-05-20 13:49:07 -0400 |
| commit | 31cb25adecba930bdeee4556709f5a1c42d88fd6 (patch) | |
| tree | 506f55142bdb93cf872f0c22c237a21329ecf884 /tests | |
| parent | 2b2a2157d0f4f1c7c4244374a460953846c65dd4 (diff) | |
[1.8.x] Fixed incorrect session.flush() in cached_db session backend.
This is a security fix; disclosure to follow shortly.
Thanks Sam Cooke for the report and draft patch.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/sessions_tests/tests.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/sessions_tests/tests.py b/tests/sessions_tests/tests.py index d9e6817976..78f7a07155 100644 --- a/tests/sessions_tests/tests.py +++ b/tests/sessions_tests/tests.py @@ -162,6 +162,7 @@ class SessionTestsMixin(object): self.session.flush() self.assertFalse(self.session.exists(prev_key)) self.assertNotEqual(self.session.session_key, prev_key) + self.assertIsNone(self.session.session_key) self.assertTrue(self.session.modified) self.assertTrue(self.session.accessed) |
