Author: PaulM
Date: 2010-07-02 12:51:12 -0500 (Fri, 02 Jul 2010)
New Revision: 13413

Modified:
   django/branches/soc2010/test-refactor/django/utils/unittest/case.py
Log:
[soc2010/test-refactor] small fix to allow unittest2 to compare ValuesQuerySet 
using assertItemsEqual


Modified: django/branches/soc2010/test-refactor/django/utils/unittest/case.py
===================================================================
--- django/branches/soc2010/test-refactor/django/utils/unittest/case.py 
2010-07-02 17:19:17 UTC (rev 13412)
+++ django/branches/soc2010/test-refactor/django/utils/unittest/case.py 
2010-07-02 17:51:12 UTC (rev 13413)
@@ -898,7 +898,7 @@
             expected.sort()
             actual = actual_seq[:]
             actual.sort()
-        except TypeError:
+        except (TypeError, AttributeError):
             # Unsortable items (example: set(), complex(), ...)
             expected = list(expected_seq)
             actual = list(actual_seq)

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to