summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Keith-Magee <russell@keith-magee.com>2010-10-02 13:14:47 +0000
committerRussell Keith-Magee <russell@keith-magee.com>2010-10-02 13:14:47 +0000
commit1429a3dbbad29809ad21947d123a64340d74e099 (patch)
treedf2c839d00b2fc92bacfdcfec5d74bed0d0eddc4
parent36ce5d0b3a5af8bae8282590b2a510272953958e (diff)
[1.2.X] Corrected a test failure under MySQL.
Backport of r13976 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13977 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-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):