summaryrefslogtreecommitdiffstats
path: root/Lib/unittest
diff options
context:
space:
mode:
authorHugo van Kemenade <hugovk@users.noreply.github.com>2023-05-27 21:34:14 (GMT)
committerGitHub <noreply@github.com>2023-05-27 21:34:14 (GMT)
commitb225c08de889d2bf070e6c981c5f386cf06d961c (patch)
tree153c0286accb1bd8217f20dc3075cb0175936494 /Lib/unittest
parent897e716d03d559a10dd5015ecb501ceb98955f3a (diff)
downloadcpython-b225c08de889d2bf070e6c981c5f386cf06d961c.zip
cpython-b225c08de889d2bf070e6c981c5f386cf06d961c.tar.gz
cpython-b225c08de889d2bf070e6c981c5f386cf06d961c.tar.bz2
gh-104992: Remove deprecated unittest.TestProgram.usageExit (#104993)
Diffstat (limited to 'Lib/unittest')
-rw-r--r--Lib/unittest/main.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/Lib/unittest/main.py b/Lib/unittest/main.py
index 51b81a6..03963e0 100644
--- a/Lib/unittest/main.py
+++ b/Lib/unittest/main.py
@@ -104,16 +104,6 @@ class TestProgram(object):
self.parseArgs(argv)
self.runTests()
- def usageExit(self, msg=None):
- warnings.warn("TestProgram.usageExit() is deprecated and will be"
- " removed in Python 3.13", DeprecationWarning)
- if msg:
- print(msg)
- if self._discovery_parser is None:
- self._initArgParsers()
- self._print_help()
- sys.exit(2)
-
def _print_help(self, *args, **kwargs):
if self.module is None:
print(self._main_parser.format_help())