From 7bc5db3a8809e4a929cd7ae858d60572cf104637 Mon Sep 17 00:00:00 2001
From: Malcolm Tredinnick <malcolm.tredinnick@gmail.com>
Date: Wed, 3 Sep 2008 17:59:09 +0000
Subject: [PATCH] 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
---
 tests/regressiontests/extra_regress/models.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/regressiontests/extra_regress/models.py b/tests/regressiontests/extra_regress/models.py
index 1d31fb267a..5a98a5dac4 100644
--- a/tests/regressiontests/extra_regress/models.py
+++ b/tests/regressiontests/extra_regress/models.py
@@ -100,11 +100,11 @@ True
 
 # Regression test for #8819: Fields in the extra(select=...) list should be
 # available to extra(order_by=...).
->>> User.objects.extra(select={'extra_field': 1}).distinct()
+>>> User.objects.filter(pk=u.id).extra(select={'extra_field': 1}).distinct()
 [<User: fred>]
->>> User.objects.extra(select={'extra_field': 1}, order_by=['extra_field'])
+>>> User.objects.filter(pk=u.id).extra(select={'extra_field': 1}, order_by=['extra_field'])
 [<User: fred>]
->>> User.objects.extra(select={'extra_field': 1}, order_by=['extra_field']).distinct()
+>>> User.objects.filter(pk=u.id).extra(select={'extra_field': 1}, order_by=['extra_field']).distinct()
 [<User: fred>]
 
 """}