summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRussell Keith-Magee <russell@keith-magee.com>2010-10-02 13:13:59 +0000
committerRussell Keith-Magee <russell@keith-magee.com>2010-10-02 13:13:59 +0000
commit57456c59a61ea3b228b346eab57358b28474ee63 (patch)
tree2e57ca80d73b18d04bd3182b0e17b2f5b620253f /tests
parent941e11e54d175f4ffc769852e5dd376ec1ba5239 (diff)
Corrected a test failure under MySQL.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@13976 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests')
-rw-r--r--tests/regressiontests/fixtures_regress/tests.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/regressiontests/fixtures_regress/tests.py b/tests/regressiontests/fixtures_regress/tests.py
index 7f9890a2cc..3fe026d5a7 100644
--- a/tests/regressiontests/fixtures_regress/tests.py
+++ b/tests/regressiontests/fixtures_regress/tests.py
@@ -238,15 +238,15 @@ class TestFixtures(TestCase):
)
articles = Article.objects.exclude(id=9)
self.assertEqual(
- articles.values_list('id', flat=True).__repr__(),
- "[1, 2, 3, 4, 5, 6, 7, 8]"
+ list(articles.values_list('id', flat=True)),
+ [1, 2, 3, 4, 5, 6, 7, 8]
)
# Just for good measure, run the same query again.
# Under the influence of ticket #7572, this will
# give a different result to the previous call.
self.assertEqual(
- articles.values_list('id', flat=True).__repr__(),
- "[1, 2, 3, 4, 5, 6, 7, 8]"
+ list(articles.values_list('id', flat=True)),
+ [1, 2, 3, 4, 5, 6, 7, 8]
)
def test_field_value_coerce(self):