Kaydet (Commit) 57456c59 authored tarafından Russell Keith-Magee's avatar Russell Keith-Magee

Corrected a test failure under MySQL.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@13976 bcc190cf-cafb-0310-a4f2-bffc1f526a37
üst 941e11e5
...@@ -238,15 +238,15 @@ class TestFixtures(TestCase): ...@@ -238,15 +238,15 @@ class TestFixtures(TestCase):
) )
articles = Article.objects.exclude(id=9) articles = Article.objects.exclude(id=9)
self.assertEqual( self.assertEqual(
articles.values_list('id', flat=True).__repr__(), list(articles.values_list('id', flat=True)),
"[1, 2, 3, 4, 5, 6, 7, 8]" [1, 2, 3, 4, 5, 6, 7, 8]
) )
# Just for good measure, run the same query again. # Just for good measure, run the same query again.
# Under the influence of ticket #7572, this will # Under the influence of ticket #7572, this will
# give a different result to the previous call. # give a different result to the previous call.
self.assertEqual( self.assertEqual(
articles.values_list('id', flat=True).__repr__(), list(articles.values_list('id', flat=True)),
"[1, 2, 3, 4, 5, 6, 7, 8]" [1, 2, 3, 4, 5, 6, 7, 8]
) )
def test_field_value_coerce(self): def test_field_value_coerce(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment