Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 0cf527f77cb546d2b0e8594110acf0ce433a2d4d 1 parent f05aab1
@ikelly ikelly authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.