diff options
-rw-r--r-- | Doc/library/unittest.rst | 7 | ||||
-rw-r--r-- | Lib/unittest/case.py | 3 |
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') |