Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[1.0.X] Fixed the test from [10447] to not depend on `os.listdir()` o…

…rdering. I always forget about that one; thanks, buildbot. Backport of r10449 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10450 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit e013c78ef85ad86a991757dcd23a797abb0a8fc7 1 parent 136d8b2
Jacob Kaplan-Moss authored
4  tests/regressiontests/model_forms_regress/models.py
@@ -39,7 +39,9 @@ class FilePathModel(models.Model):
39 39
 ...         model = FilePathModel
40 40
 
41 41
 >>> form = FPForm()
42  
->>> [c[1] for c in form['path'].field.choices]
  42
+>>> names = [c[1] for c in form['path'].field.choices]
  43
+>>> names.sort()
  44
+>>> names
43 45
 ['---------', '__init__.py', 'models.py']
44 46
 """}
45 47
 

0 notes on commit e013c78

Please sign in to comment.
Something went wrong with that request. Please try again.