From f57bc92842b45ecf34cac1a3b33972840ed6f10b Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Sun, 7 Jun 2009 23:42:26 +0000 Subject: [PATCH] [soc2009/multidb] Merged upto trunk r10941 git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/multidb@10942 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- tests/regressiontests/queries/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/regressiontests/queries/models.py b/tests/regressiontests/queries/models.py index 3649d27171..0d28926149 100644 --- a/tests/regressiontests/queries/models.py +++ b/tests/regressiontests/queries/models.py @@ -1151,6 +1151,7 @@ True >>> qs = Author.objects.filter(pk__in=subq) >>> list(qs) [, ] + # The subquery result cache should not be populated >>> subq._result_cache is None True @@ -1159,6 +1160,7 @@ True >>> qs = Author.objects.exclude(pk__in=subq) >>> list(qs) [, ] + # The subquery result cache should not be populated >>> subq._result_cache is None True @@ -1166,6 +1168,7 @@ True >>> subq = Author.objects.filter(num__lt=3000) >>> list(Author.objects.filter(Q(pk__in=subq) & Q(name='a1'))) [] + # The subquery result cache should not be populated >>> subq._result_cache is None True