summaryrefslogtreecommitdiff
path: root/Lib/unittest/runner.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2021-09-17 13:33:27 +0300
committerGitHub <noreply@github.com>2021-09-17 13:33:27 +0300
commitb0a6ede3d0bd6fa4ffe413ab4dfc1059201df25b (patch)
treef370600a4be7de179a40cfb81ade054a1f520b2a /Lib/unittest/runner.py
parent0361335b80b435ca3694981b41f8269e390eb892 (diff)
downloadcpython-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/runner.py')
-rw-r--r--Lib/unittest/runner.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/Lib/unittest/runner.py b/Lib/unittest/runner.py
index f316d31660..b51def8882 100644
--- a/Lib/unittest/runner.py
+++ b/Lib/unittest/runner.py
@@ -189,15 +189,6 @@ class TextTestRunner(object):
if self.warnings:
# if self.warnings is set, use it to filter all the warnings
warnings.simplefilter(self.warnings)
- # if the filter is 'default' or 'always', special-case the
- # warnings from the deprecated unittest methods to show them
- # no more than once per module, because they can be fairly
- # noisy. The -Wd and -Wa flags can be used to bypass this
- # only when self.warnings is None.
- if self.warnings in ['default', 'always']:
- warnings.filterwarnings('module',
- category=DeprecationWarning,
- message=r'Please use assert\w+ instead.')
startTime = time.perf_counter()
startTestRun = getattr(result, 'startTestRun', None)
if startTestRun is not None: