summaryrefslogtreecommitdiff
path: root/tests/aggregation
diff options
context:
space:
mode:
Diffstat (limited to 'tests/aggregation')
-rw-r--r--tests/aggregation/tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/aggregation/tests.py b/tests/aggregation/tests.py
index db61716e2e..6d284da63d 100644
--- a/tests/aggregation/tests.py
+++ b/tests/aggregation/tests.py
@@ -576,7 +576,7 @@ class AggregateTestCase(TestCase):
books = Book.objects.aggregate(
ratings=StringAgg(Cast(F("rating"), CharField()), Value(","), distinct=True)
)
- self.assertEqual(books["ratings"], "3,4,4.5,5")
+ self.assertCountEqual(books["ratings"].split(","), ["3", "4", "4.5", "5"])
@skipIfDBFeature("supports_aggregate_distinct_multiple_argument")
def test_raises_error_on_multiple_argument_distinct(self):