Browse files

Fixed a test that was failing in Oracle due to default ordering assum…

…ptions.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@15783 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent f05aab1 commit 0cf527f77cb546d2b0e8594110acf0ce433a2d4d @ikelly ikelly committed Mar 9, 2011
Showing with 14 additions and 14 deletions.
  1. +14 −14 tests/regressiontests/aggregation_regress/tests.py
View
28 tests/regressiontests/aggregation_regress/tests.py
@@ -568,12 +568,12 @@ def test_more_more_more(self):
)
publishers = Publisher.objects.filter(id__in=[1, 2])
- self.assertQuerysetEqual(
- publishers, [
+ self.assertEqual(
+ sorted(p.name for p in publishers),
+ [
"Apress",
"Sams"
- ],
- lambda p: p.name
+ ]
)
publishers = publishers.annotate(n_books=Count("book"))
@@ -582,12 +582,12 @@ def test_more_more_more(self):
2
)
- self.assertQuerysetEqual(
- publishers, [
+ self.assertEqual(
+ sorted(p.name for p in publishers),
+ [
"Apress",
- "Sams",
- ],
- lambda p: p.name
+ "Sams"
+ ]
)
books = Book.objects.filter(publisher__in=publishers)
@@ -599,12 +599,12 @@ def test_more_more_more(self):
],
lambda b: b.name
)
- self.assertQuerysetEqual(
- publishers, [
+ self.assertEqual(
+ sorted(p.name for p in publishers),
+ [
"Apress",
- "Sams",
- ],
- lambda p: p.name
+ "Sams"
+ ]
)
# Regression for 10666 - inherited fields work with annotations and

0 comments on commit 0cf527f

Please sign in to comment.