Author: jacob
Date: 2009-04-08 14:41:18 -0500 (Wed, 08 Apr 2009)
New Revision: 10449

Modified:
   django/trunk/tests/regressiontests/model_forms_regress/models.py
Log:
Fixed the test from [10447] to not depend on `os.listdir()` ordering. I always 
forget about that one; thanks, buildbot.

Modified: django/trunk/tests/regressiontests/model_forms_regress/models.py
===================================================================
--- django/trunk/tests/regressiontests/model_forms_regress/models.py    
2009-04-08 18:55:06 UTC (rev 10448)
+++ django/trunk/tests/regressiontests/model_forms_regress/models.py    
2009-04-08 19:41:18 UTC (rev 10449)
@@ -39,7 +39,9 @@
 ...         model = FilePathModel
 
 >>> form = FPForm()
->>> [c[1] for c in form['path'].field.choices]
+>>> names = [c[1] for c in form['path'].field.choices]
+>>> names.sort()
+>>> names
 ['---------', '__init__.py', 'models.py']
 """}
 


--~--~---------~--~----~------------~-------~--~----~
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