diff options
author | Michael Foord <fuzzyman@voidspace.org.uk> | 2010-02-05 20:54:27 (GMT) |
---|---|---|
committer | Michael Foord <fuzzyman@voidspace.org.uk> | 2010-02-05 20:54:27 (GMT) |
commit | e9abbeecf2c8db6f6b2ee86040b1742ada6648ac (patch) | |
tree | 37c16a2254b59be86cb93f956ec5534224f62f97 /Doc | |
parent | 615368fbfa75700d2d598f4b965ab2f7efbd8356 (diff) | |
download | cpython-e9abbeecf2c8db6f6b2ee86040b1742ada6648ac.zip cpython-e9abbeecf2c8db6f6b2ee86040b1742ada6648ac.tar.gz cpython-e9abbeecf2c8db6f6b2ee86040b1742ada6648ac.tar.bz2 |
Merged revisions 77997 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r77997 | michael.foord | 2010-02-05 20:52:14 +0000 (Fri, 05 Feb 2010) | 1 line
Closes issue 7030.
........
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/unittest.rst | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst index 6023c24..4adc106 100644 --- a/Doc/library/unittest.rst +++ b/Doc/library/unittest.rst @@ -801,12 +801,16 @@ Test cases .. versionadded:: 3.1 - .. 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:: 3.1 |