1
0
mirror of https://github.com/django/django.git synced 2025-07-05 02:09:13 +00:00

[soc2010/test-refactor] small fix to allow unittest2 to compare ValuesQuerySet using assertItemsEqual

git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2010/test-refactor@13413 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Paul McMillan 2010-07-02 17:51:12 +00:00
parent 62e587418c
commit c298937c94

View File

@ -898,7 +898,7 @@ class TestCase(unittest.TestCase):
expected.sort() expected.sort()
actual = actual_seq[:] actual = actual_seq[:]
actual.sort() actual.sort()
except TypeError: except (TypeError, AttributeError):
# Unsortable items (example: set(), complex(), ...) # Unsortable items (example: set(), complex(), ...)
expected = list(expected_seq) expected = list(expected_seq)
actual = list(actual_seq) actual = list(actual_seq)