From 9100c664db5cca7512947e23d588cfcb937a7a92 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Mon, 18 Nov 2019 06:32:37 -0500 Subject: Relaxed some query ordering assertions in tests. It accounts for differences seen on cockroachdb. --- tests/aggregation/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/aggregation') diff --git a/tests/aggregation/tests.py b/tests/aggregation/tests.py index 0f799c4bc3..a93c39e3d5 100644 --- a/tests/aggregation/tests.py +++ b/tests/aggregation/tests.py @@ -440,7 +440,7 @@ class AggregateTestCase(TestCase): def test_fkey_aggregate(self): explicit = list(Author.objects.annotate(Count('book__id'))) implicit = list(Author.objects.annotate(Count('book'))) - self.assertEqual(explicit, implicit) + self.assertCountEqual(explicit, implicit) def test_annotate_ordering(self): books = Book.objects.values('rating').annotate(oldest=Max('authors__age')).order_by('oldest', 'rating') -- cgit v1.3