Opened 15 years ago

Closed 15 years ago

Last modified 13 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: dev
Severity: Keywords: messages
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

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 15 years ago.
fix test

Download all attachments as: .zip

Change History (6)

comment:1 by Tobias McNulty, 15 years ago

Status: newassigned

by Tobias McNulty, 15 years ago

fix test

comment:2 by Tobias McNulty, 15 years ago

Has patch: set
Triage Stage: UnreviewedReady for checkin

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

comment:3 by Tobias McNulty, 15 years ago

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

comment:4 by Karen Tracey, 15 years ago

Resolution: fixed
Status: newclosed

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

comment:5 by Jacob, 13 years ago

milestone: 1.2

Milestone 1.2 deleted

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