Skip to content
Browse files

[soc2010/test-refactor] small fix to allow unittest2 to compare Value…

…sQuerySet using assertItemsEqual

git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2010/test-refactor@13413 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 62e5874 commit c298937c9434752aa961888e680bfb638230ec62 @PaulMcMillan PaulMcMillan committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/utils/unittest/case.py
View
2 django/utils/unittest/case.py
@@ -898,7 +898,7 @@ def assertItemsEqual(self, expected_seq, actual_seq, msg=None):
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)

0 comments on commit c298937

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