Ticket #11274: 11274-against-10931.diff

File 11274-against-10931.diff, 884 bytes (added by Honza Král, 15 years ago)
  • tests/regressiontests/queries/models.py

    diff --git a/tests/regressiontests/queries/models.py b/tests/regressiontests/queries/models.py
    index 3649d27..0d28926 100644
    a b True  
    11511151>>> qs = Author.objects.filter(pk__in=subq)
    11521152>>> list(qs)
    11531153[<Author: a1>, <Author: a2>]
     1154
    11541155# The subquery result cache should not be populated
    11551156>>> subq._result_cache is None
    11561157True
    True  
    11591160>>> qs = Author.objects.exclude(pk__in=subq)
    11601161>>> list(qs)
    11611162[<Author: a3>, <Author: a4>]
     1163
    11621164# The subquery result cache should not be populated
    11631165>>> subq._result_cache is None
    11641166True
    True  
    11661168>>> subq = Author.objects.filter(num__lt=3000)
    11671169>>> list(Author.objects.filter(Q(pk__in=subq) & Q(name='a1')))
    11681170[<Author: a1>]
     1171
    11691172# The subquery result cache should not be populated
    11701173>>> subq._result_cache is None
    11711174True
Back to Top