summaryrefslogtreecommitdiff
path: root/tests/aggregation_regress
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2022-04-14 12:12:13 +0200
committerGitHub <noreply@github.com>2022-04-14 12:12:13 +0200
commit1760ad4e8cdbf34a0f38deae300460a0b9c38eac (patch)
tree1815c8c1f40069c434fb38e2487036afd64bece5 /tests/aggregation_regress
parent08f30d1b6ac9b7bc05857f88a70277d5ceb27ba1 (diff)
Relaxed some query ordering assertions in various tests.
It accounts for differences seen on MySQL with MyISAM storage engine.
Diffstat (limited to 'tests/aggregation_regress')
-rw-r--r--tests/aggregation_regress/tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/aggregation_regress/tests.py b/tests/aggregation_regress/tests.py
index 92a66298e4..e15e7e41d9 100644
--- a/tests/aggregation_regress/tests.py
+++ b/tests/aggregation_regress/tests.py
@@ -502,7 +502,7 @@ class AggregationTests(TestCase):
def test_sliced_conditional_aggregate(self):
self.assertEqual(
- Author.objects.all()[:5].aggregate(
+ Author.objects.order_by("pk")[:5].aggregate(
test=Sum(Case(When(age__lte=35, then=1)))
)["test"],
3,