Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[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
Paul McMillan authored July 02, 2010

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/utils/unittest/case.py
2  django/utils/unittest/case.py
@@ -898,7 +898,7 @@ def assertItemsEqual(self, expected_seq, actual_seq, msg=None):
898 898
             expected.sort()
899 899
             actual = actual_seq[:]
900 900
             actual.sort()
901  
-        except TypeError:
  901
+        except (TypeError, AttributeError):
902 902
             # Unsortable items (example: set(), complex(), ...)
903 903
             expected = list(expected_seq)
904 904
             actual = list(actual_seq)

0 notes on commit c298937

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