Author: jacob
Date: 2010-02-23 17:02:10 -0600 (Tue, 23 Feb 2010)
New Revision: 12553

Modified:
   django/trunk/tests/modeltests/expressions/models.py
Log:
Fixed an unspecified ordering in the expression tests that could lead to a 
heisenbug.

Modified: django/trunk/tests/modeltests/expressions/models.py
===================================================================
--- django/trunk/tests/modeltests/expressions/models.py 2010-02-23 22:39:22 UTC 
(rev 12552)
+++ django/trunk/tests/modeltests/expressions/models.py 2010-02-23 23:02:10 UTC 
(rev 12553)
@@ -78,7 +78,7 @@
 >>> c.save()
 
 # 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.objects.exclude(ceo__firstname=F('point_of_contact__firstname')).update(name='foo')

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to