mirror of
https://github.com/python/cpython.git
synced 2025-11-26 13:22:51 +00:00
Deprecate assertDictContainsSubset()
This commit is contained in:
parent
f259076790
commit
8ebe27f300
4 changed files with 22 additions and 4 deletions
|
|
@ -934,6 +934,8 @@ class TestCase(object):
|
|||
|
||||
def assertDictContainsSubset(self, subset, dictionary, msg=None):
|
||||
"""Checks whether dictionary is a superset of subset."""
|
||||
warnings.warn('assertDictContainsSubset is deprecated',
|
||||
DeprecationWarning)
|
||||
missing = []
|
||||
mismatched = []
|
||||
for key, value in subset.items():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue