Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[1.0.X] Fixed #10103: Testcase fix for Jython compatibility. Thanks f…

…or 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
  • Loading branch information...
commit 47ed900b412f119824f9de79e47d9696f6bc2d97 1 parent 042777c
Karen Tracey authored January 23, 2009

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  tests/modeltests/model_forms/models.py
4  tests/modeltests/model_forms/models.py
@@ -1285,8 +1285,8 @@ def __unicode__(self):
1285 1285
 >>> form = ExplicitPKForm({'key': u'key1', 'desc': u''})
1286 1286
 >>> form.is_valid()
1287 1287
 False
1288  
->>> form.errors
1289  
-{'__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.']}
  1288
+>>> sorted(form.errors.items())
  1289
+[('__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.'])]
1290 1290
 
1291 1291
 # Choices on CharField and IntegerField
1292 1292
 >>> class ArticleForm(ModelForm):

0 notes on commit 47ed900

Please sign in to comment.
Something went wrong with that request. Please try again.