summaryrefslogtreecommitdiffstats
path: root/Doc/library/unittest.rst
diff options
context:
space:
mode:
authorGregory P. Smith <greg@mad-scientist.com>2010-02-28 22:01:02 (GMT)
committerGregory P. Smith <greg@mad-scientist.com>2010-02-28 22:01:02 (GMT)
commit48a5ec42a830a9adc67546647d453cdfc15564c2 (patch)
tree022635d355d95a7193494fa936e7c30f2e9c978e /Doc/library/unittest.rst
parent31d12ca8438653eff2b83c4beb240ac3179705c8 (diff)
downloadcpython-48a5ec42a830a9adc67546647d453cdfc15564c2.zip
cpython-48a5ec42a830a9adc67546647d453cdfc15564c2.tar.gz
cpython-48a5ec42a830a9adc67546647d453cdfc15564c2.tar.bz2
(really issue7832, not 7030)
Merged revisions 77998 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r77998 | michael.foord | 2010-02-05 12:54:27 -0800 (Fri, 05 Feb 2010) | 9 lines 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/library/unittest.rst')
-rw-r--r--Doc/library/unittest.rst6
1 files changed, 5 insertions, 1 deletions
diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst
index 7224bde..6fda488 100644
--- a/Doc/library/unittest.rst
+++ b/Doc/library/unittest.rst
@@ -729,12 +729,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