[1.11.x] Refs #28066 -- Fixed nondeterministic ordering test failure in sessions_tests.
Thanks Tim Graham for the review.
Backport of 81f8449402
from master
This commit is contained in:
parent
5d556d2aaf
commit
3173d9a850
|
@ -191,11 +191,11 @@ class SessionTestsMixin(object):
|
|||
def test_cycle_with_no_session_cache(self):
|
||||
self.session['a'], self.session['b'] = 'c', 'd'
|
||||
self.session.save()
|
||||
prev_data = list(self.session.items())
|
||||
prev_data = self.session.items()
|
||||
self.session = self.backend(self.session.session_key)
|
||||
self.assertFalse(hasattr(self.session, '_session_cache'))
|
||||
self.session.cycle_key()
|
||||
self.assertEqual(list(self.session.items()), prev_data)
|
||||
self.assertCountEqual(self.session.items(), prev_data)
|
||||
|
||||
def test_save_doesnt_clear_data(self):
|
||||
self.session['a'] = 'b'
|
||||
|
|
Loading…
Reference in New Issue