diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2021-09-17 13:33:27 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-17 13:33:27 +0300 |
commit | b0a6ede3d0bd6fa4ffe413ab4dfc1059201df25b (patch) | |
tree | f370600a4be7de179a40cfb81ade054a1f520b2a /Lib/unittest/test/_test_warnings.py | |
parent | 0361335b80b435ca3694981b41f8269e390eb892 (diff) | |
download | cpython-git-b0a6ede3d0bd6fa4ffe413ab4dfc1059201df25b.tar.gz |
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_warnings.py')
-rw-r--r-- | Lib/unittest/test/_test_warnings.py | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/Lib/unittest/test/_test_warnings.py b/Lib/unittest/test/_test_warnings.py index 5cbfb532ad..08b846ee47 100644 --- a/Lib/unittest/test/_test_warnings.py +++ b/Lib/unittest/test/_test_warnings.py @@ -18,17 +18,6 @@ def warnfun(): warnings.warn('rw', RuntimeWarning) class TestWarnings(unittest.TestCase): - # unittest warnings will be printed at most once per type (max one message - # for the fail* methods, and one for the assert* methods) - def test_assert(self): - self.assertEquals(2+2, 4) - self.assertEquals(2*2, 4) - self.assertEquals(2**2, 4) - - def test_fail(self): - self.failUnless(1) - self.failUnless(True) - def test_other_unittest(self): self.assertAlmostEqual(2+2, 4) self.assertNotAlmostEqual(4+4, 2) |