From 1760ad4e8cdbf34a0f38deae300460a0b9c38eac Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Thu, 14 Apr 2022 12:12:13 +0200 Subject: Relaxed some query ordering assertions in various tests. It accounts for differences seen on MySQL with MyISAM storage engine. --- 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 52a268c4ae..8de2bf1998 100644 --- a/tests/annotations/tests.py +++ b/tests/annotations/tests.py @@ -212,7 +212,7 @@ class NonAggregateAnnotationTestCase(TestCase): with register_lookup(DecimalField, Floor): books = Book.objects.annotate(floor_price=F("price__floor")) - self.assertSequenceEqual( + self.assertCountEqual( books.values_list("pk", "floor_price"), [ (self.b1.pk, 30), -- cgit v1.3