[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.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10450 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
136d8b2854
commit
e013c78ef8
@ -39,7 +39,9 @@ True
|
|||||||
... model = FilePathModel
|
... model = FilePathModel
|
||||||
|
|
||||||
>>> form = FPForm()
|
>>> 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']
|
['---------', '__init__.py', 'models.py']
|
||||||
"""}
|
"""}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user