From 28f6b7162352a19b6f3931f46f3d26713c2712b4 Mon Sep 17 00:00:00 2001 From: Jacob Kaplan-Moss Date: Wed, 8 Apr 2009 19:41:18 +0000 Subject: [PATCH] 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 --- tests/regressiontests/model_forms_regress/models.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/regressiontests/model_forms_regress/models.py b/tests/regressiontests/model_forms_regress/models.py index fc587202d6..88e23f9013 100644 --- a/tests/regressiontests/model_forms_regress/models.py +++ b/tests/regressiontests/model_forms_regress/models.py @@ -39,7 +39,9 @@ True ... 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'] """}