mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Relaxed some query ordering assertions in various tests.
It accounts for differences seen on MySQL with MyISAM storage engine.
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user