Used assertCountEqual() in ExcludeTests.test_exclude_subquery().

This commit is contained in:
Mariusz Felisiak 2021-04-22 10:47:10 +02:00 committed by GitHub
parent 6a7af38b07
commit c3278bb71f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -2810,7 +2810,7 @@ class ExcludeTests(TestCase):
) | JobResponsibilities.objects.exclude(
job__responsibilities__description='foo',
)
self.assertSequenceEqual(
self.assertCountEqual(
Job.objects.annotate(
responsibility=subquery.filter(
job=OuterRef('name'),