summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2010-11-29 01:38:25 (GMT)
committerRaymond Hettinger <python@rcn.com>2010-11-29 01:38:25 (GMT)
commit40b8cf528fdc7896c3677342f6050b4d80377ee4 (patch)
tree98a900b39788c0a993d39c9bf164d0efc0f8e8de
parentfc889c48edc17b9502c0aef416ce2d003dbef4e6 (diff)
downloadcpython-40b8cf528fdc7896c3677342f6050b4d80377ee4.zip
cpython-40b8cf528fdc7896c3677342f6050b4d80377ee4.tar.gz
cpython-40b8cf528fdc7896c3677342f6050b4d80377ee4.tar.bz2
Do not add an obsolete unittest name to Py3.2.
-rw-r--r--Doc/library/unittest.rst7
-rw-r--r--Lib/unittest/case.py3
2 files changed, 0 insertions, 10 deletions
diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst
index 2236f72..6bfdd8d 100644
--- a/Doc/library/unittest.rst
+++ b/Doc/library/unittest.rst
@@ -1144,13 +1144,6 @@ Test cases
.. versionadded:: 3.2
- .. method:: assertItemsEqual(actual, expected, msg=None)
-
- Outdated name for :meth:`assertCountEqual`, kept for compatibility
- with Python 2.7.
-
- .. versionadded:: 3.2
-
.. method:: assertSameElements(actual, expected, msg=None)
Test that sequence *expected* contains the same elements as *actual*,
diff --git a/Lib/unittest/case.py b/Lib/unittest/case.py
index f59c068..efba646 100644
--- a/Lib/unittest/case.py
+++ b/Lib/unittest/case.py
@@ -1029,9 +1029,6 @@ class TestCase(object):
standardMsg = '\n'.join(errors)
self.fail(self._formatMessage(msg, standardMsg))
- # Old name for assertCountEqual()
- assertItemsEqual = assertCountEqual
-
def assertMultiLineEqual(self, first, second, msg=None):
"""Assert that two multi-line strings are equal."""
self.assertIsInstance(first, str, 'First argument is not a string')