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/annotations/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/annotations') diff --git a/tests/annotations/tests.py b/tests/annotations/tests.py index c39e8d3fbe..db4413564c 100644 --- a/tests/annotations/tests.py +++ b/tests/annotations/tests.py @@ -209,7 +209,7 @@ class NonAggregateAnnotationTestCase(TestCase): lengths = Employee.objects.annotate( name_len=Length('first_name'), ).distinct('name_len').values_list('name_len', flat=True) - self.assertSequenceEqual(lengths, [3, 7, 8]) + self.assertCountEqual(lengths, [3, 7, 8]) def test_filter_annotation(self): books = Book.objects.annotate( -- cgit v1.3