summaryrefslogtreecommitdiffstats
path: root/Lib/unittest/test/test_assertions.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2021-09-17 10:33:27 (GMT)
committerGitHub <noreply@github.com>2021-09-17 10:33:27 (GMT)
commitb0a6ede3d0bd6fa4ffe413ab4dfc1059201df25b (patch)
treef370600a4be7de179a40cfb81ade054a1f520b2a /Lib/unittest/test/test_assertions.py
parent0361335b80b435ca3694981b41f8269e390eb892 (diff)
downloadcpython-b0a6ede3d0bd6fa4ffe413ab4dfc1059201df25b.zip
cpython-b0a6ede3d0bd6fa4ffe413ab4dfc1059201df25b.tar.gz
cpython-b0a6ede3d0bd6fa4ffe413ab4dfc1059201df25b.tar.bz2
bpo-45162: Remove many old deprecated unittest features (GH-28268)
* "fail*" and "assert*" aliases of TestCase methods. * Broken from start TestCase method assertDictContainsSubset(). * Ignored TestLoader.loadTestsFromModule() parameter use_load_tests. * Old alias _TextTestResult of TextTestResult.
Diffstat (limited to 'Lib/unittest/test/test_assertions.py')
-rw-r--r--Lib/unittest/test/test_assertions.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/Lib/unittest/test/test_assertions.py b/Lib/unittest/test/test_assertions.py
index a0db3423..6557104 100644
--- a/Lib/unittest/test/test_assertions.py
+++ b/Lib/unittest/test/test_assertions.py
@@ -271,15 +271,6 @@ class TestLongMessage(unittest.TestCase):
r"\+ \{'key': 'value'\}$",
r"\+ \{'key': 'value'\} : oops$"])
- def testAssertDictContainsSubset(self):
- with warnings.catch_warnings():
- warnings.simplefilter("ignore", DeprecationWarning)
-
- self.assertMessages('assertDictContainsSubset', ({'key': 'value'}, {}),
- ["^Missing: 'key'$", "^oops$",
- "^Missing: 'key'$",
- "^Missing: 'key' : oops$"])
-
def testAssertMultiLineEqual(self):
self.assertMessages('assertMultiLineEqual', ("", "foo"),
[r"\+ foo$", "^oops$",