From 40b8cf528fdc7896c3677342f6050b4d80377ee4 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Mon, 29 Nov 2010 01:38:25 +0000 Subject: Do not add an obsolete unittest name to Py3.2. --- Doc/library/unittest.rst | 7 ------- Lib/unittest/case.py | 3 --- 2 files changed, 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') -- cgit v0.12