Author: jacob
Date: 2009-04-08 14:42:01 -0500 (Wed, 08 Apr 2009)
New Revision: 10450

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

Modified: 
django/branches/releases/1.0.X/tests/regressiontests/model_forms_regress/models.py
===================================================================
--- 
django/branches/releases/1.0.X/tests/regressiontests/model_forms_regress/models.py
  2009-04-08 19:41:18 UTC (rev 10449)
+++ 
django/branches/releases/1.0.X/tests/regressiontests/model_forms_regress/models.py
  2009-04-08 19:42:01 UTC (rev 10450)
@@ -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