Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

… I always forget about that one; thanks, buildbot.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@10449 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 28f6b7162352a19b6f3931f46f3d26713c2712b4 1 parent a64a61b
@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.