Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[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
@jacobian jacobian authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 tests/regressiontests/model_forms_regress/models.py
View
4 tests/regressiontests/model_forms_regress/models.py
@@ -39,7 +39,9 @@ class FilePathModel(models.Model):
... 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']
"""}
Please sign in to comment.
Something went wrong with that request. Please try again.