Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #10103: Testcase fix for Jython compatibility. Thanks for repor…

…t and patch leosoto.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@9782 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit ef22bb7b3397932758bad0dc706723693ce85cb3 1 parent 3951680
@kmtracey kmtracey authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/modeltests/model_forms/models.py
View
4 tests/modeltests/model_forms/models.py
@@ -1285,8 +1285,8 @@ def __unicode__(self):
>>> 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):
Please sign in to comment.
Something went wrong with that request. Please try again.