Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Changed the tests added in r8898 very slightly so that they don't return

unintended results. Doctests aren't self-contained yet when run as part of
the full suite. Refs #5624, #8835.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8930 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 7bc5db3a8809e4a929cd7ae858d60572cf104637 1 parent 399abd7
Malcolm Tredinnick authored September 03, 2008
6  tests/regressiontests/extra_regress/models.py
@@ -100,11 +100,11 @@ class Order(models.Model):
100 100
 
101 101
 # Regression test for #8819: Fields in the extra(select=...) list should be
102 102
 # available to extra(order_by=...).
103  
->>> User.objects.extra(select={'extra_field': 1}).distinct()
  103
+>>> User.objects.filter(pk=u.id).extra(select={'extra_field': 1}).distinct()
104 104
 [<User: fred>]
105  
->>> User.objects.extra(select={'extra_field': 1}, order_by=['extra_field'])
  105
+>>> User.objects.filter(pk=u.id).extra(select={'extra_field': 1}, order_by=['extra_field'])
106 106
 [<User: fred>]
107  
->>> User.objects.extra(select={'extra_field': 1}, order_by=['extra_field']).distinct()
  107
+>>> User.objects.filter(pk=u.id).extra(select={'extra_field': 1}, order_by=['extra_field']).distinct()
108 108
 [<User: fred>]
109 109
 
110 110
 """}

0 notes on commit 7bc5db3

Please sign in to comment.
Something went wrong with that request. Please try again.