mirror of https://github.com/django/django.git
Used assertCountEqual() in ExcludeTests.test_exclude_subquery().
This commit is contained in:
parent
6a7af38b07
commit
c3278bb71f
|
@ -2810,7 +2810,7 @@ class ExcludeTests(TestCase):
|
||||||
) | JobResponsibilities.objects.exclude(
|
) | JobResponsibilities.objects.exclude(
|
||||||
job__responsibilities__description='foo',
|
job__responsibilities__description='foo',
|
||||||
)
|
)
|
||||||
self.assertSequenceEqual(
|
self.assertCountEqual(
|
||||||
Job.objects.annotate(
|
Job.objects.annotate(
|
||||||
responsibility=subquery.filter(
|
responsibility=subquery.filter(
|
||||||
job=OuterRef('name'),
|
job=OuterRef('name'),
|
||||||
|
|
Loading…
Reference in New Issue