commit | 8ebe27f30012ad1858edf41a0ee0be16ff70127b | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Tue Dec 21 19:24:26 2010 +0000 |
committer | Raymond Hettinger <python@rcn.com> | Tue Dec 21 19:24:26 2010 +0000 |
tree | 62a28157f0bf2500e03870168a60dce71d3217a5 | |
parent | f259076790dac0b0c596a4545f05967d9cc76f65 [diff] [blame] |
Deprecate assertDictContainsSubset()
diff --git a/Lib/unittest/case.py b/Lib/unittest/case.py index b02d475..15c7eee 100644 --- a/Lib/unittest/case.py +++ b/Lib/unittest/case.py
@@ -934,6 +934,8 @@ 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():