mirror of
https://github.com/django/django.git
synced 2025-09-09 04:00:48 +00:00
Relaxed some query ordering assertions in tests.
It accounts for differences seen on cockroachdb.
This commit is contained in:
parent
5e2839f320
commit
9100c664db
3 changed files with 3 additions and 3 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue