Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #12368: Fixed order-dependent messages test that was failing on…

… MySQL/MyISAM. Thanks Tobias.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit cafb12464bf26d379c88b02b362528fd84481671 1 parent 4b0f953
@kmtracey kmtracey authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/contrib/messages/tests/
4 django/contrib/messages/tests/
@@ -218,9 +218,9 @@ def test_middleware_disabled_auth_user(self):
response =, data, follow=True)
self.assertRedirects(response, show_url)
self.assertTrue('messages' in response.context)
- self.assertEqual(list(response.context['messages']),
- data['messages'])
+ context_messages = list(response.context['messages'])
for msg in data['messages']:
+ self.assertTrue(msg in context_messages)
self.assertContains(response, msg)
def test_middleware_disabled_anon_user(self):
Please sign in to comment.
Something went wrong with that request. Please try again.