Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 13ec112

Browse files
committed
Issue #13248: Removed docs for two deprecated unittest features. To be conservative, the code is left in for one more release.
1 parent 3d7c878 commit 13ec112

1 file changed

Lines changed: 0 additions & 30 deletions

File tree

Doc/library/unittest.rst

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1175,21 +1175,6 @@ Test cases
11751175
:meth:`.assertNotRegex`.
11761176

11771177

1178-
.. method:: assertDictContainsSubset(subset, dictionary, msg=None)
1179-
1180-
Tests whether the key/value pairs in *dictionary* are a superset of
1181-
those in *subset*. If not, an error message listing the missing keys
1182-
and mismatched values is generated.
1183-
1184-
Note, the arguments are in the opposite order of what the method name
1185-
dictates. Instead, consider using the set-methods on :ref:`dictionary
1186-
views <dict-views>`, for example: ``d.keys() <= e.keys()`` or
1187-
``d.items() <= d.items()``.
1188-
1189-
.. versionadded:: 3.1
1190-
.. deprecated:: 3.2
1191-
1192-
11931178
.. method:: assertCountEqual(first, second, msg=None)
11941179

11951180
Test that sequence *first* contains the same elements as *second*,
@@ -1204,21 +1189,6 @@ Test cases
12041189

12051190
.. versionadded:: 3.2
12061191

1207-
.. method:: assertSameElements(first, second, msg=None)
1208-
1209-
Test that sequence *first* contains the same elements as *second*,
1210-
regardless of their order. When they don't, an error message listing
1211-
the differences between the sequences will be generated.
1212-
1213-
Duplicate elements are ignored when comparing *first* and *second*.
1214-
It is the equivalent of ``assertEqual(set(first), set(second))``
1215-
but it works with sequences of unhashable objects as well. Because
1216-
duplicates are ignored, this method has been deprecated in favour of
1217-
:meth:`assertCountEqual`.
1218-
1219-
.. versionadded:: 3.1
1220-
.. deprecated:: 3.2
1221-
12221192

12231193
.. _type-specific-methods:
12241194

0 commit comments

Comments
 (0)