Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
import sys
import argparse
import os
+import warnings
from . import loader, runner
from .signals import installHandler
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:
--- /dev/null
+:meth:`~unittest.TestProgram.usageExit` is marked deprecated, to be removed in 3.13.