Opened 7 years ago

Closed 7 years ago

Last modified 5 years ago

#12368 closed (fixed)

django.contrib.messages tests fail with mysql backend - ordering issues

Reported by: Tobias McNulty Owned by: Karen Tracey
Component: Contrib apps Version: master
Severity: Keywords: messages
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

======================================================================
FAIL: test_middleware_disabled_auth_user (django.contrib.messages.tests.cookie.CookieTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/tobias/caktus/django-trunk-tobiasmcnulty/django/contrib/messages/tests/base.py", line 222, in test_middleware_disabled_auth_user
    data['messages'])
AssertionError: [u'Test message 9', u'Test message 8', u'Test message 7', u'Test message 6', u'Test message 5', u'Test message 4', u'Test message 3', u'Test message 2', u'Test message 1', u'Test message 0'] != ['Test message 0', 'Test message 1', 'Test message 2', 'Test message 3', 'Test message 4', 'Test message 5', 'Test message 6', 'Test message 7', 'Test message 8', 'Test message 9']

======================================================================
FAIL: test_middleware_disabled_auth_user (django.contrib.messages.tests.fallback.FallbackTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/tobias/caktus/django-trunk-tobiasmcnulty/django/contrib/messages/tests/base.py", line 222, in test_middleware_disabled_auth_user
    data['messages'])
AssertionError: [u'Test message 9', u'Test message 8', u'Test message 7', u'Test message 6', u'Test message 5', u'Test message 4', u'Test message 3', u'Test message 2', u'Test message 1', u'Test message 0'] != ['Test message 0', 'Test message 1', 'Test message 2', 'Test message 3', 'Test message 4', 'Test message 5', 'Test message 6', 'Test message 7', 'Test message 8', 'Test message 9']

======================================================================
FAIL: test_middleware_disabled_auth_user (django.contrib.messages.tests.user_messages.LegacyFallbackTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/tobias/caktus/django-trunk-tobiasmcnulty/django/contrib/messages/tests/base.py", line 222, in test_middleware_disabled_auth_user
    data['messages'])
AssertionError: [u'Test message 9', u'Test message 8', u'Test message 7', u'Test message 6', u'Test message 5', u'Test message 4', u'Test message 3', u'Test message 2', u'Test message 1', u'Test message 0'] != ['Test message 0', 'Test message 1', 'Test message 2', 'Test message 3', 'Test message 4', 'Test message 5', 'Test message 6', 'Test message 7', 'Test message 8', 'Test message 9']

======================================================================
FAIL: test_middleware_disabled_auth_user (django.contrib.messages.tests.session.SessionTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/tobias/caktus/django-trunk-tobiasmcnulty/django/contrib/messages/tests/base.py", line 222, in test_middleware_disabled_auth_user
    data['messages'])
AssertionError: [u'Test message 9', u'Test message 8', u'Test message 7', u'Test message 6', u'Test message 5', u'Test message 4', u'Test message 3', u'Test message 2', u'Test message 1', u'Test message 0'] != ['Test message 0', 'Test message 1', 'Test message 2', 'Test message 3', 'Test message 4', 'Test message 5', 'Test message 6', 'Test message 7', 'Test message 8', 'Test message 9']

----------------------------------------------------------------------
Ran 103 tests in 17.659s

FAILED (failures=4)

Attachments (1)

messages_mysql_tests_fix.diff (799 bytes) - added by Tobias McNulty 7 years ago.
fix test

Download all attachments as: .zip

Change History (6)

comment:1 Changed 7 years ago by Tobias McNulty

Status: newassigned

Changed 7 years ago by Tobias McNulty

fix test

comment:2 Changed 7 years ago by Tobias McNulty

Has patch: set
Triage Stage: UnreviewedReady for checkin

This is a minor fix to a test only (no code changes); marking RFC

comment:3 Changed 7 years ago by Tobias McNulty

Owner: changed from Tobias McNulty to Karen Tracey
Status: assignednew

comment:4 Changed 7 years ago by Karen Tracey

Resolution: fixed
Status: newclosed

(In [11847]) Fixed #12368: Fixed order-dependent messages test that was failing on MySQL/MyISAM. Thanks Tobias.

comment:5 Changed 5 years ago by Jacob

milestone: 1.2

Milestone 1.2 deleted

Note: See TracTickets for help on using tickets.
Back to Top