Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[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
  • Loading branch information...
commit 1429a3dbbad29809ad21947d123a64340d74e099 1 parent 36ce5d0
Russell Keith-Magee freakboy3742 authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 tests/regressiontests/fixtures_regress/tests.py
8 tests/regressiontests/fixtures_regress/tests.py
View
@@ -238,15 +238,15 @@ def test_close_connection_after_loaddata(self):
)
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):
Please sign in to comment.
Something went wrong with that request. Please try again.