Fixed an unspecified ordering in the expression tests that could lead to a heisenbug.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@12553 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jacob Kaplan-Moss 2010-02-23 23:02:10 +00:00
parent 5366aa96fe
commit d30ff77602
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ __test__ = {'API_TESTS': """
>>> c.save() >>> c.save()
# F Expressions can also span joins # F Expressions can also span joins
>>> Company.objects.filter(ceo__firstname=F('point_of_contact__firstname')).distinct() >>> Company.objects.filter(ceo__firstname=F('point_of_contact__firstname')).distinct().order_by('name')
[<Company: Foobar Ltd.>, <Company: Test GmbH>] [<Company: Foobar Ltd.>, <Company: Test GmbH>]
>>> _ = Company.objects.exclude(ceo__firstname=F('point_of_contact__firstname')).update(name='foo') >>> _ = Company.objects.exclude(ceo__firstname=F('point_of_contact__firstname')).update(name='foo')