Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #11274 -- Corrected doctests to not cause test failures due to …

…missing newlines. Thanks Honza Kral.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@10941 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 89df572c476c3817eaf33dd9eec3aa9ad4732dcf 1 parent 708bc80
@brosner brosner authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  tests/regressiontests/queries/models.py
View
3  tests/regressiontests/queries/models.py
@@ -1151,6 +1151,7 @@ def __unicode__(self):
>>> qs = Author.objects.filter(pk__in=subq)
>>> list(qs)
[<Author: a1>, <Author: a2>]
+
# The subquery result cache should not be populated
>>> subq._result_cache is None
True
@@ -1159,6 +1160,7 @@ def __unicode__(self):
>>> qs = Author.objects.exclude(pk__in=subq)
>>> list(qs)
[<Author: a3>, <Author: a4>]
+
# The subquery result cache should not be populated
>>> subq._result_cache is None
True
@@ -1166,6 +1168,7 @@ def __unicode__(self):
>>> subq = Author.objects.filter(num__lt=3000)
>>> list(Author.objects.filter(Q(pk__in=subq) & Q(name='a1')))
[<Author: a1>]
+
# The subquery result cache should not be populated
>>> subq._result_cache is None
True
Please sign in to comment.
Something went wrong with that request. Please try again.