﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
5399	Error in test suite, modeltests.fixtures.models.__test__.API_TESTS	Ludovico Magnocavallo <ludo@…>	Michael Radziej	"When running the test suite against [6094] using MySQL 5.0 on a pretty stock Ubuntu feisty system, I get an error in {{{tests/modeltests/fixtures/models.py}}}. The same error is not present if I switch the backend to sqlite3.

Here is the dump of the error messages

{{{
======================================================================
FAIL: Doctest: modeltests.fixtures.models.__test__.API_TESTS
----------------------------------------------------------------------
Traceback (most recent call last):
  File ""django/test/_doctest.py"", line 2161, in runTest
AssertionError: Failed doctest test for modeltests.fixtures.models.__test__.API_TESTS
  File ""/home/ludo/Desktop/dev/django-tests/modeltests/fixtures/models.py"", line unknown line number, in API_TESTS

----------------------------------------------------------------------
File ""/home/ludo/Desktop/dev/django-tests/modeltests/fixtures/models.py"", line ?, in modeltests.fixtures.models.__test__.API_TESTS
Failed example:
    Article.objects.all()
Expected:
    [<Article: Time to reform copyright>, <Article: Poker has no place on ESPN>, <Article: Python program becomes self aware>]
Got:
    [<Article: XML identified as leading cause of cancer>, <Article: Time to reform copyright>, <Article: Poker on TV is great!>, <Article: Python program becomes self aware>]
----------------------------------------------------------------------
File ""/home/ludo/Desktop/dev/django-tests/modeltests/fixtures/models.py"", line ?, in modeltests.fixtures.models.__test__.API_TESTS
Failed example:
    management.call_command('dumpdata', 'fixtures', format='json')
Expected:
    [{""pk"": ""3"", ""model"": ""fixtures.article"", ""fields"": {""headline"": ""Time to reform copyright"", ""pub_date"": ""2006-06-16 13:00:00""}}, {""pk"": ""2"", ""model"": ""fixtures.article"", ""fields"": {""headline"": ""Poker has no place on ESPN"", ""pub_date"": ""2006-06-16 12:00:00""}}, {""pk"": ""1"", ""model"": ""fixtures.article"", ""fields"": {""headline"": ""Python program becomes self aware"", ""pub_date"": ""2006-06-16 11:00:00""}}]
Got:
    [{""pk"": ""5"", ""model"": ""fixtures.article"", ""fields"": {""headline"": ""XML identified as leading cause of cancer"", ""pub_date"": ""2006-06-16 16:00:00""}}, {""pk"": ""3"", ""model"": ""fixtures.article"", ""fields"": {""headline"": ""Time to reform copyright"", ""pub_date"": ""2006-06-16 13:00:00""}}, {""pk"": ""2"", ""model"": ""fixtures.article"", ""fields"": {""headline"": ""Poker on TV is great!"", ""pub_date"": ""2006-06-16 11:00:00""}}, {""pk"": ""1"", ""model"": ""fixtures.article"", ""fields"": {""headline"": ""Python program becomes self aware"", ""pub_date"": ""2006-06-16 11:00:00""}}]


----------------------------------------------------------------------
Ran 160 tests in 124.687s

FAILED (failures=1)
}}}"		closed	Testing framework	dev		duplicate			Unreviewed	0	0	0	0	0	0
