Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit c298937c9434752aa961888e680bfb638230ec62 1 parent 62e5874
@PaulMcMillan PaulMcMillan authored
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)
Please sign in to comment.
Something went wrong with that request. Please try again.