[Python-checkins] cpython: Issue #13248: Removed docs for two deprecated unittest features. To be
raymond.hettinger
python-checkins at python.org
Thu Mar 15 02:17:28 CET 2012
http://hg.python.org/cpython/rev/0ddb78341290
changeset: 75684:0ddb78341290
parent: 75675:d97ae725814c
user: Raymond Hettinger <python at rcn.com>
date: Wed Mar 14 18:16:18 2012 -0700
summary:
Issue #13248: Removed docs for two deprecated unittest features. To be conservative, the code is left in for one more release.
files:
Doc/library/unittest.rst | 30 ----------------------------
1 files changed, 0 insertions(+), 30 deletions(-)
diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst
--- a/Doc/library/unittest.rst
+++ b/Doc/library/unittest.rst
@@ -1175,21 +1175,6 @@
:meth:`.assertNotRegex`.
- .. method:: assertDictContainsSubset(subset, dictionary, msg=None)
-
- Tests whether the key/value pairs in *dictionary* are a superset of
- those in *subset*. If not, an error message listing the missing keys
- and mismatched values is generated.
-
- Note, the arguments are in the opposite order of what the method name
- dictates. Instead, consider using the set-methods on :ref:`dictionary
- views <dict-views>`, for example: ``d.keys() <= e.keys()`` or
- ``d.items() <= d.items()``.
-
- .. versionadded:: 3.1
- .. deprecated:: 3.2
-
-
.. method:: assertCountEqual(first, second, msg=None)
Test that sequence *first* contains the same elements as *second*,
@@ -1204,21 +1189,6 @@
.. versionadded:: 3.2
- .. method:: assertSameElements(first, second, msg=None)
-
- Test that sequence *first* contains the same elements as *second*,
- 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 *first* and *second*.
- It is the equivalent of ``assertEqual(set(first), set(second))``
- but it works with sequences of unhashable objects as well. Because
- duplicates are ignored, this method has been deprecated in favour of
- :meth:`assertCountEqual`.
-
- .. versionadded:: 3.1
- .. deprecated:: 3.2
-
.. _type-specific-methods:
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list