diff options
| author | Karen Tracey <kmtracey@gmail.com> | 2009-01-23 05:00:09 +0000 |
|---|---|---|
| committer | Karen Tracey <kmtracey@gmail.com> | 2009-01-23 05:00:09 +0000 |
| commit | 47ed900b412f119824f9de79e47d9696f6bc2d97 (patch) | |
| tree | f47d19c420a5820b09192dbb3e4704a427e00ea5 | |
| parent | 042777c83822a6249ee7042a9700c08360fa44fa (diff) | |
[1.0.X] Fixed #10103: Testcase fix for Jython compatibility. Thanks for report and patch leosoto.
r9782 from trunk.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9784 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | tests/modeltests/model_forms/models.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/modeltests/model_forms/models.py b/tests/modeltests/model_forms/models.py index 46d26c5cdc..a202185ec6 100644 --- a/tests/modeltests/model_forms/models.py +++ b/tests/modeltests/model_forms/models.py @@ -1285,8 +1285,8 @@ True >>> form = ExplicitPKForm({'key': u'key1', 'desc': u''}) >>> form.is_valid() False ->>> form.errors -{'__all__': [u'Explicit pk with this Key and Desc already exists.'], 'key': [u'Explicit pk with this Key already exists.'], 'desc': [u'Explicit pk with this Desc already exists.']} +>>> sorted(form.errors.items()) +[('__all__', [u'Explicit pk with this Key and Desc already exists.']), ('desc', [u'Explicit pk with this Desc already exists.']), ('key', [u'Explicit pk with this Key already exists.'])] # Choices on CharField and IntegerField >>> class ArticleForm(ModelForm): |
