From ef22bb7b3397932758bad0dc706723693ce85cb3 Mon Sep 17 00:00:00 2001 From: Karen Tracey Date: Fri, 23 Jan 2009 04:53:18 +0000 Subject: [PATCH] Fixed #10103: Testcase fix for Jython compatibility. Thanks for report and patch leosoto. git-svn-id: http://code.djangoproject.com/svn/django/trunk@9782 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- tests/modeltests/model_forms/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/modeltests/model_forms/models.py b/tests/modeltests/model_forms/models.py index 46d26c5cdc8..a202185ec6b 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):