mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
Deprecate assertDictContainsSubset()
This commit is contained in:
parent
f259076790
commit
8ebe27f300
4 changed files with 22 additions and 4 deletions
|
@ -1079,6 +1079,7 @@ test case
|
|||
(self.failUnlessRaises, (TypeError, lambda _: 3.14 + 'spam')),
|
||||
(self.failIf, (False,)),
|
||||
(self.assertSameElements, ([1, 1, 2, 3], [1, 2, 3])),
|
||||
(self.assertDictContainsSubset, (dict(a=1, b=2), dict(a=1, b=2, c=3))),
|
||||
(self.assertRaisesRegexp, (KeyError, 'foo', lambda: {}['foo'])),
|
||||
(self.assertRegexpMatches, ('bar', 'bar')),
|
||||
)
|
||||
|
@ -1093,7 +1094,7 @@ test case
|
|||
deprecated_names = [
|
||||
'failIfEqual', 'failUnlessEqual', 'failUnlessAlmostEqual',
|
||||
'failIfAlmostEqual', 'failUnless', 'failUnlessRaises', 'failIf',
|
||||
'assertSameElements'
|
||||
'assertSameElements', 'assertDictContainsSubset',
|
||||
]
|
||||
for deprecated_name in deprecated_names:
|
||||
with self.assertRaises(AttributeError):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue