]> granicus.if.org Git - python/commitdiff
Closes issue 7030.
authorMichael Foord <fuzzyman@voidspace.org.uk>
Fri, 5 Feb 2010 20:52:14 +0000 (20:52 +0000)
committerMichael Foord <fuzzyman@voidspace.org.uk>
Fri, 5 Feb 2010 20:52:14 +0000 (20:52 +0000)
Doc/library/unittest.rst

index b1899ce23561da08003b069373c677f2176474c7..d3b0767aae5df3c10fd5c790b955a7d9e1d74aec 100644 (file)
@@ -806,12 +806,16 @@ Test cases
       .. versionadded:: 2.7
 
 
-   .. method:: assertSameElements(expected, actual, msg=None)
+   .. method:: assertSameElements(actual, expected, msg=None)
 
       Test that sequence *expected* contains the same elements as *actual*,
       regardless of their order. When they don't, an error message listing
       the differences between the sequences will be generated.
 
+      Duplicate elements are ignored when comparing *actual* and *expected*.
+      It is the equivalent of ``assertEqual(set(expected), set(actual))``
+      but it works with sequences of unhashable objects as well.
+
       If specified *msg* will be used as the error message on failure.
 
       .. versionadded:: 2.7